NSIntegerCompareOrder() utility function.
Two NSArray sorting category methods.