From 1899f4e1ba775b56f22d28862c6457fd6626d29a Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Thu, 8 Feb 2024 12:22:02 -0600 Subject: [PATCH] Sort categories ascending instead of leaving them in loaded order (#932) --- src/charselect.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/charselect.cpp b/src/charselect.cpp index 7a3ec1a15..31cf4711b 100644 --- a/src/charselect.cpp +++ b/src/charselect.cpp @@ -320,7 +320,8 @@ void Courtroom::character_loading_finished() ui_char_list->insertTopLevelItem(0, category); category->addChild(treeItem); } - + + ui_char_list->sortItems(0, Qt::AscendingOrder); connect(char_button, &AOCharButton::clicked, [this, n]() { this->char_clicked(n); });