WLJS LogoWLJS Notebook

AlphabeticSort

AlphabeticSort[list] sorts the elements of list into alphabetical order.

AlphabeticSort[list, lang] sorts using an ordering suitable for the language lang.

Examples

Sort strings alphabetically:

AlphabeticSort[{"banana", "apple", "cherry"}]
(* {"apple", "banana", "cherry"} *)

Sort using German locale:

AlphabeticSort[{"Äpfel", "Birne", "Apfel"}, "German"]

Please visit the official Wolfram Language Reference for more details.

On this page