Sort an array of hashes by a numeric attribute using sort_by.
Sort an array of hashrefs numerically by a single key.