$constants[$name] = $constReflector;
}
- // @todo this should be natcasesort
- ksort($constants);
+ // @todo switch to ksort after we drop support for 5.3:
+ // ksort($constants, SORT_NATURAL | SORT_FLAG_CASE);
+ uksort($constants, 'strnatcasecmp');
return $constants;
}