How do I sort an array of dictionaries by more than one key?

You can give a tuple for the key.

#arr.sorted(key: it => (it.a, it.b))