Using `ls --group-directories-first` results in an arbitrary (but consistent) ordering (notice the directories/files are not alphabetically sorted): <img width="1175" height="166" alt="Image" src="https://github.com/user-attachments/assets/a6192c2f-4770-45f7-ae4f-61befa2a64a0" /> --- (`ls` without `--group-directories-first` sorts entries as expected).
Using
ls --group-directories-firstresults in an arbitrary (but consistent) ordering (notice the directories/files are not alphabetically sorted):(
lswithout--group-directories-firstsorts entries as expected).