How to sort an array of objects by multiple fields? How to sort an array of objects by multiple fields?