Index: branches/5.0.x/core/kernel/application.php =================================================================== diff -u -r13215 -r13242 --- branches/5.0.x/core/kernel/application.php (.../application.php) (revision 13215) +++ branches/5.0.x/core/kernel/application.php (.../application.php) (revision 13242) @@ -1,6 +1,6 @@ getUnitOption($prefix_only, 'RewritePriority', 0); } - arsort($sorted); + asort($sorted, SORT_NUMERIC); $pass_info = array_keys($sorted); // ensure that "m" prefix is at the beginning Index: branches/5.0.x/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -r12734 -r13242 --- branches/5.0.x/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 12734) +++ branches/5.0.x/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 13242) @@ -1,6 +1,6 @@ $priority) { $listeners[$prefix] = $this->Application->RewriteListeners[$prefix]; }