TakeSmallestBy

WMA link


TakeSmallestBy[list, f, n]

returns the a sorted list of the n smallest items in list
using f to retrieve the items' keys to compare them.

For details on how to use the ExcludedForms option, see TakeLargest[].

TakeLargestBy