See for example the definition given here:
http://mathworld.wolfram.com/LexicographicOrder.html
Mathematica rules!
That happened to be the first site returned by google, but it's the
standard mathematical definition, nothing to do with mathematica.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list