docstr: Check some different types with the default comparator.
docstr_tok: ["Check","some","different","types","with","the","default","comparator","."]
code: def testSortingRepeatedScalarFieldsDefaultComparator(self):
      """Check some different types with the default comparator."""
      message = unittest_pb2.TestAllTypes()
  
      # TODO(mattp): would testing more scalar types strengthen test?
      message.repeated_int32.append(1)
      message.repeated_int32.append(3)
      message.repeated_int32.append(2)
      message.repeated_int32.sort()
      self.assertEqual(message.repeated_int32[0], 1)
      self.assertEqual(message.repeated_int32[1], 2)
      self.assertEqual(message.repeated_int32[2], 3)
  
      message.repeated_float.append(1.1)
      message.repeated_float.append(1.3)
      message.repeated_float.append(1.2)
      message.repeated_float.sort()
      self.assertAlmostEqual(message.repeated_float[0], 1.1)
      self.assertAlmostEqual(message.repeated_float[1], 1.2)
      self.assertAlmostEqual(message.repeated_float[2], 1.3)
  
      message.repeated_string.append("a")
      message.repeated_string.append("c")
      message.repeated_string.append("b")
      message.repeated_string.sort()
      self.assertEqual(message.repeated_string[0], "a")
      self.assertEqual(message.repeated_string[1], "b")
      self.assertEqual(message.repeated_string[2], "c")
  
      message.repeated_bytes.append("a")
      message.repeated_bytes.append("c")
      message.repeated_bytes.append("b")
      message.repeated_bytes.sort()
      self.assertEqual(message.repeated_bytes[0], "a")
      self.assertEqual(message.repeated_bytes[1], "b")
      self.assertEqual(message.repeated_bytes[2], "c")
  
imports: import copy
  import math
  import operator
  import pickle
  import unittest
  from google.protobuf import unittest_import_pb2
  from google.protobuf import unittest_pb2
  from google.protobuf.internal import api_implementation
  from google.protobuf.internal import test_util
  from google.protobuf import message
label_desc: Use image node_id 15 for calling the MessageTest obj's underlying member method code with example usage: obj.testSortingRepeatedScalarFieldsDefaultComparator() without return types