You can use the SORTA operation to sort an array data structure using one of its subfields as a key.
For more information about sorting an array data structure, see SORTA (Sort an Array).