From 87bf09fad2bdd773e97508a2c660aaf97fc92b1f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 3 Feb 2013 14:21:15 +0530 Subject: [PATCH] use integer sort string for archives not using imdb ids --- pandora/item/models.py | 2 ++ 1 file changed, 2 insertions(+) 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