Talk:Decorate-sort-undecorate idiom
Functionally Speaking
Some languages may support the task as specified with their version of the higher order function sortBy or similar. In general I think the general purpose HOF would be groupBy in functional languages.--Nigel Galloway (talk) 17:26, 31 July 2023 (UTC)