|
@@ -494,10 +494,11 @@ field/operator couple in a query. We will keep only the first one")
|
494
|
494
|
|
495
|
495
|
##@brief Generate a comparison function for post reccursion sorting in
|
496
|
496
|
#select
|
|
497
|
+ #@return a lambda function that take 2 dict as arguement
|
497
|
498
|
@classmethod
|
498
|
499
|
def __generate_lambda_cmp_order(cls, order):
|
499
|
500
|
if len(order) == 0:
|
500
|
|
- return lambda a,b: False
|
|
501
|
+ return lambda a,b: 0
|
501
|
502
|
glco = cls.__generate_lambda_cmp_order
|
502
|
503
|
fname, cmpdir = order[0]
|
503
|
504
|
order = order[1:]
|