usage of scandir to shows the folders

The function is now able to show folders in alphabetic order, and you
can now sort them with a prefix (a_, b_, c_, ...).