Sorting Windows Directories using Korn script.

I have a directory called test, which contains multiple sub directories namely TF80A, TF80B, TF80C.

I need to sort these directories by name, so in the above case TF80A Is the oldest and TF80C is the latest.

Is there a ksh script that would loop through the directories and sort these directories from the earliest to the latest. Again I dont need to sort it by the date these sub directories where created or modified, and rather by their names -. Thanks

ls -l
would normally list files in name order, with lots of details on each entry

ls -l | grep "^d"
would then just provide those that are directory

Is this what you are tryign to do?