9
9
template<class T> class vector_tpl;
13
15
class freight_list_sorter_t
16
18
enum sort_mode_t { by_name=0, by_via=1, by_via_sum=2, by_amount=3};
18
static void sort_freight(const vector_tpl<ware_t>* warray, cbuffer_t& buf, sort_mode_t sort_mode, const slist_tpl<ware_t>* full_list, const char* what_doing);
20
static void sort_freight(const vector_tpl<ware_t>* warray, cbuffer_t& buf, sort_mode_t sort_mode, const slist_tpl<ware_t>* full_list, const char* what_doing, karte_t *world);
21
25
static sort_mode_t sortby;
23
27
static bool compare_ware(ware_t const& w1, ware_t const& w2);