Subject: | Would like to be able to specify the order of menu commands |
command_map() returns a hashref, and consequently commands are shown in
the menu in the order in which Perl happens to store the keys. I suggest
command_map() should instead return an array ref, with the array
containing (command, package name) pairs, so the programmer may define
the order of the commands.
(In fact, I currently define a private method which returns such an
array reference. I then override command_map and call the private method
from it, and "cast" the array ref to a hash ref. I also override
get_interactive_commands and call the same private method, extracting
the interactive commands in order.)