simplify module's priority sorting using std::multimap