The sortByProperty function is often used to find the top candidate for something, and then the array should first be shuffled in order to avoid systematic bias. Instead of doing this before calling sortByProperty, it makes sense to have it as an option.
The sortByProperty function is often used to find the top candidate for something, and then the array should first be shuffled in order to avoid systematic bias. Instead of doing this before calling sortByProperty, it makes sense to have it as an option.