sort-charsets

sort-charsets is a built-in function in `C source code'.

(sort-charsets CHARSETS)

Sort charset list CHARSETS by a priority of each charset.
Return the sorted list. CHARSETS is modified by side effects.
See also `charset-priority-list' and `set-charset-priority'.