Break after finding the right index
This commit is contained in:
parent
4705a39c41
commit
5872fdcc64
|
@ -228,6 +228,7 @@ def sort_by_index_spec(articles, index_specs, key=None):
|
||||||
for index in index_eval_order:
|
for index in index_eval_order:
|
||||||
if index_match(index, key(article)):
|
if index_match(index, key(article)):
|
||||||
indexed[index.pattern].append(article)
|
indexed[index.pattern].append(article)
|
||||||
|
break
|
||||||
return indexed
|
return indexed
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue