add sorting by type=time item keys, fixes #2136
This commit is contained in:
parent
f8890ed015
commit
f34bdd6631
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue