Fix sorting by price.

This commit is contained in:
John Schember 2011-02-26 15:44:38 -05:00
parent 9b5768e2d1
commit 668ee348ce

View File

@ -191,6 +191,7 @@ class Matches(QAbstractItemModel):
if len(text) < 3 or text[-3] not in ('.', ','): if len(text) < 3 or text[-3] not in ('.', ','):
text += '00' text += '00'
text = re.sub(r'\D', '', text) text = re.sub(r'\D', '', text)
text = text.rjust(6, '0')
elif col == 4: elif col == 4:
text = result.store text = result.store
return text return text