Made sorting behavior compliant with usort
Merge pull request #2 from matthiasnoback/php_usort_compliant

Made sorting behavior compliant with usort