| 1014 | } |
| 1015 | |
| 1016 | static command_result orders_sort_command(color_ostream & out) |
| 1017 | { |
| 1018 | if (!std::is_sorted(world->manager_orders.all.begin(), |
| 1019 | world->manager_orders.all.end(), |
| 1020 | orders_compare)) |
| 1021 | { |
| 1022 | std::stable_sort(world->manager_orders.all.begin(), |
| 1023 | world->manager_orders.all.end(), |
| 1024 | orders_compare); |
| 1025 | out << "Fixed priority of manager orders." << std::endl; |
| 1026 | } |
| 1027 | |
| 1028 | return CR_OK; |
| 1029 | } |
| 1030 | |
| 1031 | static command_result orders_recheck_command(color_ostream & out) |
| 1032 | { |
no test coverage detected