sort the menu items derived from file system