SortedBy

SortedBy

is an option that specifies a function by which to sort the results of a computation.

Details

  • Typical settings include:
  • Automaticautomatic sorting
    Noneno sorting
    fan arbitrary function to sort by
    {f1,f2,}breaks ties by successively using values obtained from fi
  • Using SortedBy->f effectively gives SortBy[list,f].

Examples

Basic Examples  (1)

Sort the results of face detection by the estimated age for each face:

In[1]:=
Click for copyable input
In[5]:=
Click for copyable input
Out[5]=
Introduced in 2019
(12.0)