Now uses choose_from_menu() for the format display, and the items are now sorted.
Now uses choose_from_menu() for the format display, and the items
are now sorted.

The other items could be easily done with choose_from_menu() too  ;-)

dilawar/moodle