From 4d6f56dbd4a4f5df8c1f5267c41b1b3f4c895ce5 Mon Sep 17 00:00:00 2001
From: Ezio Melotti <ezio.melotti@gmail.com>
Date: Mon, 2 Aug 2010 04:25:50 +0000
Subject: [PATCH] Fix incorrect placement of sorted()

---
 Lib/test/test_cgi.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Lib/test/test_cgi.py b/Lib/test/test_cgi.py
index ef0653487d..0144b972cc 100644
--- a/Lib/test/test_cgi.py
+++ b/Lib/test/test_cgi.py
@@ -166,9 +166,9 @@ class CgiTests(unittest.TestCase):
                     self.assertEqual(sorted(sd.getlist(key)), sorted(expect_val))
                     if single_value:
                         self.assertEqual(sorted(sd.values()),
-                                         sorted(first_elts(expect.values())))
+                                         first_elts(sorted(expect.values())))
                         self.assertEqual(sorted(sd.items()),
-                                         sorted(first_second_elts(expect.items())))
+                                         first_second_elts(sorted(expect.items())))
 
     def test_weird_formcontentdict(self):
         # Test the weird FormContentDict classes
-- 
2.40.0