SQLCatalog: allow "desc" as a sort keyword
Some listboxes in ERP5 use "| desc" to sort elements, even if it didn't work (ie: Base_viewEventList/listbox). Also, as "asc" is working (because descending sort is defined by whitelist), adding "desc" makes things more consistent
Showing
-
Owner
What about converting the existing DESC to desc, and adding a .lower() ? One less item, and no incentive to later (at least) double the list.
-
Developer
Indeed, it's possible too. I didn't know if we want to allow all case-randomly written keywords to be allowed. For exemple, "DeSceNDiNg" would work. But, even if it currently doesn't work, "AsCenDINg" currently works... Do you want me to fixup ?
-
Owner
I would tend to follow SQL on this: they are case-insensitive, so we could as well be. If you can spare the time do such follow-up commit, please do.
Please register or sign in to comment