From 85ee2b0a3d2ee52fc31dd8991594c07ba5cfc4b1 Mon Sep 17 00:00:00 2001 From: jlaine Date: Mon, 7 Sep 2009 16:58:16 +0000 Subject: [PATCH] case insensitive sorting git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@662 e071eeec-0327-468d-9b6a-08194a12b294 --- ldapdb/models/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldapdb/models/query.py b/ldapdb/models/query.py index def325f..367cd2c 100644 --- a/ldapdb/models/query.py +++ b/ldapdb/models/query.py @@ -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)) -- 2.30.2