Closed ale-rt closed 3 years ago
This is probably a fix for #81 as well, even if I see that there is more advanced work happening in PR #82
Without this patch the added test fails like:
AssertionError: Lists differ: [97, 76, 52, 39, 29, 26, 25, 24, 17, 0] != [99, 98, 97, 96, 95, 94, 93, 92, 91, 90]
First differing element 0:
97
99
- [97, 76, 52, 39, 29, 26, 25, 24, 17, 0]
+ [99, 98, 97, 96, 95, 94, 93, 92, 91, 90]
I would merge this because it fixes an issue observed by many people, even if it might cost some CPU cycles. I believe it is better to have something that works slow rather than something that (in some case) doesn't work but it is faster.
I see #82 looks promising performance wise, but it seems to me it requires still some work before it gets merged.
Should I backport this patch to the 5.x branch?
Thanks for the reviews!
Should I backport this patch to the 5.x branch?
Unless there's someone is specifically asking for it I wouldn't bother.
@ale-rt backport for 5.x would be great, since we're using that 5.x for Plone 5.2.x
@agitator yeah I know, anyway I think we can even switch to latest master, I do not see it so hard
Fix reversed sorting by multiple index by forcing the
_sort_iterate_resultset
sorting method when we have more than one sorting indexFixes #108