What are some methods I could achieve the following?
I have a lot of products as JSON objects. Each has 3 properties I want to sort by, and I would want to be able to change the which property is sorted before the others. In SQL I might have written
order by weight, height, power or other combinations.
The more powerful the solution the better, as I will probably want to expand requirements, all of which would be more easily handled by RDBMS, however I only want to know client-side options, as I will fall back to using a server-side RDBMS if absolutely necessary.
Edit: Come to think of it, it might actually be quite simple just to use Array.sort(sortFn)?...