Restore file and directory sorting.