Ticket #6904: 6904_revision7393.diff
File 6904_revision7393.diff, 877 bytes (added by , 17 years ago) |
---|
-
django/template/defaultfilters.py
417 417 the argument. 418 418 """ 419 419 var_resolve = Variable(arg).resolve 420 decorated = [( var_resolve(item), item) for item in value]420 decorated = [(unicode.lower(var_resolve(item)), item) for item in value] 421 421 decorated.sort() 422 422 return [item[1] for item in decorated] 423 423 dictsort.is_safe = False … … 428 428 property given in the argument. 429 429 """ 430 430 var_resolve = Variable(arg).resolve 431 decorated = [( var_resolve(item), item) for item in value]431 decorated = [(unicode.lower(var_resolve(item)), item) for item in value] 432 432 decorated.sort() 433 433 decorated.reverse() 434 434 return [item[1] for item in decorated]