Order physical lines alphabetically, numerically, by UTF-16 length, or with locale-aware natural collation.
Rows split at CRLF or LF, can be trimmed or filtered, and are compared with localeCompare, parseFloat prefixes, JavaScript length, or numeric collation. Descending order negates the comparator before reconstruction with LF.
banana apple cherry date avocado
apple avocado banana cherry date
Vocabulary lists are alphabetized, item2/item10 filenames use natural order, and measurement rows sort by a leading numeric value.