add sorting by type=time item keys, fixes #2136

This commit is contained in:
j 2014-02-03 09:24:24 +00:00
parent f8890ed015
commit f34bdd6631

View file

@ -842,7 +842,7 @@ class Item(models.Model):
value = u','.join(value) value = u','.join(value)
value = utils.sort_string(value)[:955] value = utils.sort_string(value)[:955]
set_value(s, name, value) set_value(s, name, value)
elif sort_type in ('length', 'integer', 'float'): elif sort_type in ('length', 'integer', 'time', 'float'):
#can be length of strings or length of arrays, i.e. keywords #can be length of strings or length of arrays, i.e. keywords
value = self.get(source) value = self.get(source)
if isinstance(value, list): if isinstance(value, list):