Compose map, filter, and reduce to transform a list of numbers.
Tag: Arrays
Sort with Array.prototype.sort and a comparator function.
Sort with usort and a spaceship-operator comparator.
Sort an array of hashes by a numeric attribute using sort_by.
Sort an array of hashrefs numerically by a single key.