def METHOD_NAME(self):
    model_objs = self.create_test_objects()
    objs = HashType.objects.filter(hashTypeId__gte=90000, hashTypeId__lte=91000,
                                   ordering=['-isSalted', '-hashTypeId'])
    sorted_model_objs = sorted(model_objs, key=lambda x: (x.isSalted, x.hashTypeId), reverse=True)
    self.assertEqual(
        [x.id for x in sorted_model_objs],
        [x.id for x in objs])