|
@@ -498,9 +498,10 @@ field/operator couple in a query. We will keep only the first one")
|
498
|
498
|
def __generate_lambda_cmp_order(cls, order):
|
499
|
499
|
if len(order) == 0:
|
500
|
500
|
return lambda a,b: False
|
|
501
|
+ glco = cls.__generate_lambda_cmp_order
|
501
|
502
|
fname, cmpdir = order[0]
|
502
|
503
|
order = order[1:]
|
503
|
|
- return lambda a,b: 0 if a[fname] == b[fname] else (\
|
|
504
|
+ return lambda a,b: glco(order) if a[fname] == b[fname] else (\
|
504
|
505
|
1 if (a[fname]>b[fname] if cmpdir == 'ASC' else a[fname]<b[fname])\
|
505
|
506
|
else -1)
|
506
|
507
|
|