Hi Stephen,
This is possible out of the box. If you do a ‘Retrieve’ action and use the Database source, there is an option at the bottom for Sort parameters. Here, you can use attributes available over association to do the sorting. See the picture below where I retrieve an Account object sorted by User Language