compare – Compare two strings
The file defines a macro \compare, which takes two arguments; the macro expands to -1, 0, 1, according as the first argument is less than, equal to, or greater than the second argument. Sorting is alphabetic, using ASCII collating order.
|Public Domain Software
|TeX Live as compare
MiKTeX as genmisc
Maybe you are interested in the following packages as well.
- balancedquotes: Code balanced quotes according to document language
- commado: Expandable iteration on comma-separated and filename lists
- multido: A loop facility for Generic TeX
- multiexpand: Variations on the primitive command \expandafter