Can you sort an ls listing by name?
Notice: "a" comes after "Z":
touch A.txt aa.txt Z.txt ls
Output:
A.txt Z.txt aa.txt