How to sort dataset by data present in array of objects?

@jonatandor35 that only makes sense when filtering, which is the whole point - when filtering you add a specific condition which allows you to select one particular index from your array of objects. When sorting, however, I really need to be able to pass the index as there is no such thing as a condition. Also, there might be more than 2 userIds, so switching between ascending/descending wouldn’t help either.