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:

Wolfram Research (2019), SortedBy, Wolfram Language function, https://reference.wolfram.com/language/ref/SortedBy.html.

Text

Wolfram Research (2019), SortedBy, Wolfram Language function, https://reference.wolfram.com/language/ref/SortedBy.html.

CMS

Wolfram Language. 2019. "SortedBy." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SortedBy.html.

APA

Wolfram Language. (2019). SortedBy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SortedBy.html

BibTeX

@misc{reference.wolfram_2023_sortedby, author="Wolfram Research", title="{SortedBy}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/SortedBy.html}", note=[Accessed: 20-April-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_sortedby, organization={Wolfram Research}, title={SortedBy}, year={2019}, url={https://reference.wolfram.com/language/ref/SortedBy.html}, note=[Accessed: 20-April-2024 ]}