Sirt in-place to save time
not the first time, so that we can still pass it iterators
(cherry picked from commit 21cb97b2e2
)
This commit is contained in:
parent
36578fdd67
commit
b60c87e9f8
@ -5,13 +5,13 @@ init python:
|
|||||||
item = sorted(item, key=lambda x: natsort_key(x.name))
|
item = sorted(item, key=lambda x: natsort_key(x.name))
|
||||||
|
|
||||||
if sortby == "Price (Asc)":
|
if sortby == "Price (Asc)":
|
||||||
item = sorted(item, key=lambda x: x.price, reverse=False)
|
item.sort(key=lambda x: x.price, reverse=False)
|
||||||
elif current_sorting == "Price (Desc)":
|
elif current_sorting == "Price (Desc)":
|
||||||
item = sorted(item, key=lambda x: x.price, reverse=True)
|
item.sort(key=lambda x: x.price, reverse=True)
|
||||||
if sortby == "Lewdness (Asc)":
|
if sortby == "Lewdness (Asc)":
|
||||||
item = sorted(item, key=get_outfit_score, reverse=False)
|
item.sort(key=get_outfit_score, reverse=False)
|
||||||
elif current_sorting == "Lewdness (Desc)":
|
elif current_sorting == "Lewdness (Desc)":
|
||||||
item = sorted(item, key=get_outfit_score, reverse=True)
|
item.sort(key=get_outfit_score, reverse=True)
|
||||||
return item
|
return item
|
||||||
|
|
||||||
label shop_dress:
|
label shop_dress:
|
||||||
|
Loading…
Reference in New Issue
Block a user