Sort a list of dicts by a key with sorted() + itemgetter for speed.
Tag: Sort
Sort with Array.prototype.sort and a comparator function.
Sort with usort and a spaceship-operator comparator.
Sort a slice of structs with sort.Slice and a less func.
Sort a Vec of structs by one field using sort_by_key.
Sort an array of hashes by a numeric attribute using sort_by.
Sort an array of hashrefs numerically by a single key.