returns a list of the for which the value of is minimal.
returns a list of the corresponding to the n smallest .
- Values of are compared using the same canonical order as in Sort.
- The minimal are returned in the order they appear in the input.
- In the case of MinimalBy[list,f,n], the are sorted in the order of increasing , with those having the same value of being taken in the order they appear in list.
- MinimalBy[f][expr] is equivalent to MinimalBy[expr,f].
Introduced in 2014