4 years ago

Collection sort by multiple fields

Posted 4 years ago by xikky

I have a collection which is a result of other merged collections, which are filtered through relationships and where queries. Now I would like to sort the collection by multiple fields.

I know there is sort() and sortBy() but these seem to only work with single field sorting. How about multiple fields sorting?

Can anyone help me on how I can achieve multiple fields sorting? Thank you!

Please sign in or create an account to participate in this conversation.