Template:StringCompare/doc

Parameters

 * : First string to compare
 * : Second string to compare
 * : Set this to do a sort-of-numeric comparison:
 * splits on whitespace and compares tokens alphabetically, except when tokens are all digits/periods, in which case it splits the token on the period and compares the numbers numerically.

Output

 * if the two strings are the same,
 * if the first string sorts before the second,
 * if the first string sorts after the second.

Examples

 * normal, alphabetic usage

&rarr;

&rarr;

&rarr;


 * versions

&rarr;

&rarr;

&rarr;

&rarr;