cmpString( x, y )

Compares the two inputs x and y as strings, returning either -1, 0 or 1. This function is primarily used with sort and sortBy.

x preceds y
Returns -1
x = y
Returns 0
x follows y
Returns 1
:-) cmpString( "a", "b" );
There is 1 result
-1
:-) cmpString( "whether", "weather" );
There is 1 result
1
:-) cmpString( "4", "4" );
There is 1 result
0