fixed server side sorting of case-insensitive strings
authorAndrew Tridgell <tridge@samba.org>
Wed, 10 Jun 2009 00:13:55 +0000 (10:13 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 10 Jun 2009 00:13:55 +0000 (10:13 +1000)
commit48dbfc89cf532704a0e2fedff828a0a48476053f
treeab3a0f34f809f3496a6b4fc0b619612d5697a9e5
parentb660e51decaa1da99bce7eac80e6a6fad69b6dcb
fixed server side sorting of case-insensitive strings

The sort module uses ldb_comparison_fold() as the comparison function
for case-insensitive attributes. In other places the function is being
used to produce a boolean, but for sorting we care about ordering.

The n1 - n2 return was sorting by length, not value
source4/lib/ldb/common/attrib_handlers.c