From 668ee348ce2d5680ea5dd6e17c467b87dad4639a Mon Sep 17 00:00:00 2001 From: John Schember Date: Sat, 26 Feb 2011 15:44:38 -0500 Subject: [PATCH] Fix sorting by price. --- src/calibre/gui2/store/search.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/store/search.py b/src/calibre/gui2/store/search.py index 5c07984cda..df29181c4d 100644 --- a/src/calibre/gui2/store/search.py +++ b/src/calibre/gui2/store/search.py @@ -191,6 +191,7 @@ class Matches(QAbstractItemModel): if len(text) < 3 or text[-3] not in ('.', ','): text += '00' text = re.sub(r'\D', '', text) + text = text.rjust(6, '0') elif col == 4: text = result.store return text