Addons List: fixed type sorting
Sorting by type alone results in incorrect alphabetical order of the display names since it's sorting an enum and not an actual textual name. There might be some issues with sorting these since the return value is translated, but that can be figured out later.
This commit is contained in:
parent
f307582334
commit
dd60cd2ccd
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ void addon_list::finalize_setup()
|
|||
list.register_sorting_option(1, [this](const int i) { return addon_vector_[i]->author; });
|
||||
list.register_sorting_option(2, [this](const int i) { return addon_vector_[i]->size; });
|
||||
list.register_sorting_option(3, [this](const int i) { return addon_vector_[i]->downloads; });
|
||||
list.register_sorting_option(4, [this](const int i) { return addon_vector_[i]->type; });
|
||||
list.register_sorting_option(4, [this](const int i) { return addon_vector_[i]->display_type(); });
|
||||
}
|
||||
|
||||
addon_list_definition::addon_list_definition(const config& cfg) :
|
||||
|
|
Loading…
Add table
Reference in a new issue