case insensitive sorting
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 7 Sep 2009 16:58:16 +0000 (16:58 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 7 Sep 2009 16:58:16 +0000 (16:58 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@662 e071eeec-0327-468d-9b6a-08194a12b294

ldapdb/models/query.py

index def325f90ce29281f11d929f9914611bcce9b934..367cd2cec1eadae0cdecc06d241f5f27bf0ed860 100644 (file)
@@ -88,7 +88,7 @@ class Query(BaseQuery):
             keys = []
             for k in ordering:
                 attr = self.model._meta.get_field(k).db_column
-                keys.append(x[1].get(attr, None))
+                keys.append(x[1].get(attr, None).lower())
             return keys
         vals = sorted(vals, key=lambda x: getkey(x))