Make daemon interactive commands ordered again

This commit is contained in:
Jason Rhinelander 2020-08-01 12:37:25 -03:00
parent a0079aa154
commit 52faa1a2e1

View file

@ -423,7 +423,7 @@ eof:
public:
using callback = std::function<bool(const std::vector<std::string> &)>;
using empty_callback = std::function<bool()>;
using lookup = std::unordered_map<std::string, std::pair<callback, std::pair<std::string, std::string>>>;
using lookup = std::map<std::string, std::pair<callback, std::pair<std::string, std::string>>>;
/// Go through registered commands in sorted order, call the function with three string
/// arguments: command name, usage, and description.