[DEV] set order by recursive (mutiple values...)

This commit is contained in:
Edouard DUPIN 2020-01-21 22:08:07 +01:00
parent 271bff816c
commit fcd15511d9

View File

@ -290,6 +290,8 @@ class DataInterface():
continue
out.append(elem);
out = sorted(out, key=lambda x: x[value_order])
if len(_order) > 1:
out_unclassable = self.order_by(out_unclassable, _order[1:]);
for elem in out_unclassable:
out.append(elem);
return out;