compare()

Simple compare function typically use in sorting.

This function is valid in v2.0.0 to v2.13.3. This function has been downloaded 42 times.

Parameters

{*} a
First argument to compare.
{*} b
Second argument to compare.

Returns

{number}
-1 is returned if a < b. 1 is returned if a > b. In all other cases 0 is returned.