Unit Create: made Race the default sorting option, as was in 1.12

Fixes the second issue described in #2510.
This commit is contained in:
Charles Dang 2018-02-17 12:21:51 +11:00
parent 5c570841d3
commit 6b52d16fae

View file

@ -154,6 +154,8 @@ void unit_create::pre_show(window& window)
list.register_sorting_option(0, [this](const int i) { return (*units_[i]).race()->plural_name().str(); });
list.register_sorting_option(1, [this](const int i) { return (*units_[i]).type_name().str(); });
list.set_active_sorting_option({0, listbox::SORT_ASCENDING}, true);
list_item_clicked(window);
}