Sorting list based on several variables

this is great, much quicker than using GroupByKey or SortByKey, thanks :slight_smile: