Functions that do many unrelated things
The function to get entries in a directory has a flag for sorting reverse lexically.
scandir - List files and directories inside the specified path array scandir ( string $directory [, int $sorting_order= 0 [, resource $context ]] ) sorting_order By default, the sorted order is alphabetical in ascending order. If the optional sorting_order is set to non-zero, then the sort order is alphabetical in descending order.
Significance: Consistency
Language consistency is very important for developer efficiency. Every inconsistent language feature means that developers have one more thing to remember, one more reason to rely on the documentation, or one more situation that breaks their focus. A consistent language lets developers create habits and expectations that work throughout the language, learn the language much more quickly, more easily locate errors, and have fewer things to keep track of at once.