the simpler way to compare 2 integers for sorting purpose is to use ``return $a - $b;``. PHP does not care about the integer being ``0``, ``1`` or ``-1``. It cares about the integer being ``0``, ``> 0`` or ``< 0``.