Break after finding the right index

This commit is contained in:
Tim Van Baak 2020-04-30 01:50:29 -07:00
parent 4705a39c41
commit 5872fdcc64

View File

@ -228,6 +228,7 @@ def sort_by_index_spec(articles, index_specs, key=None):
for index in index_eval_order:
if index_match(index, key(article)):
indexed[index.pattern].append(article)
break
return indexed