[BUGFIX] Revert constant usage on ksort. This seems not to be supported by older PHP versions.