Hi, I was wondering if there are any plan to supp...
# community-help
o
Hi, I was wondering if there are any plan to support more than 3 parameters in sorting?
f
Hey Olivier, the reason for the three parameter limit is performance. Adding more would lead to slower performance for sorting. What you can do, is consolidate the rest of the fields you want to sort by, in order to calculate a predetermined score ahead of indexing, so you can use that as the third field.
o
Hi Fanis, It would be nice to have it configurable. This creates some hard limit on what we can provide in term of user experience. Because I want my user to influence on sorting, thus I can predict a valid computed field.
f
Hey Olivier, the reason it is a hard limit is due to compiler optimizations. Changing it to a configurable number would remove many of these optimizations, which is why the limit remains. Also, since tie breaking is done, the chance of a 4th tie breaker making any practical difference is very small, so this limit doesn't typically affect sorting outcomes much.