Index: pyyaml/trunk/tests/lib3/test_structure.py
===================================================================
--- pyyaml/trunk/tests/lib3/test_structure.py	(revision 330)
+++ pyyaml/trunk/tests/lib3/test_structure.py	(revision 331)
@@ -140,5 +140,5 @@
         def construct_mapping(self, node):
             pairs = self.construct_pairs(node)
-            pairs.sort()
+            pairs.sort(key=(lambda i: str(i)))
             return pairs
         def construct_undefined(self, node):
@@ -156,5 +156,5 @@
         def construct_mapping(self, node):
             pairs = self.construct_pairs(node)
-            pairs.sort()
+            pairs.sort(key=(lambda i: str(i)))
             return pairs
         def construct_undefined(self, node):
