Browse files

Fix multiple-tag sorting

Signed-off-by: Jack Miller <jack@codezen.org>
  • Loading branch information...
1 parent aa2137c commit 620f16ccf78649b038e66a20747f1e6936825257 @themoken committed Feb 1, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 canto/tag.py
View
4 canto/tag.py
@@ -77,10 +77,12 @@ def sort_add(self, iter):
list.insert(self, idx, item)
return
+ added = 0
for i, item in enumerate(self):
while sort(item, iter[0][0]) > 0:
- list.insert(self, i, iter[0][0])
+ list.insert(self, i + added, iter[0][0])
del iter[0]
+ added += 1
if not iter:
return

0 comments on commit 620f16c

Please sign in to comment.