diff --git a/pandora/item/models.py b/pandora/item/models.py index b6e4b1792..a1b9653c4 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -776,6 +776,8 @@ class Item(models.Model): #sort keys based on database, these will always be available s.itemId = self.itemId.replace('0x', 'xx') + if not settings.USE_IMDB: + s.itemId = ox.sort_string(ox.fromAZ(s.itemId)) s.modified = self.modified s.created = self.created s.rightslevel = self.level