MCPcopy Create free account
hub / github.com/DFHack/dfhack / orders_sort_command

Function orders_sort_command

plugins/orders.cpp:1016–1029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014}
1015
1016static 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
1031static command_result orders_recheck_command(color_ostream & out)
1032{

Callers 1

orders_commandFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected