aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2024-02-08 12:22:02 -0600
committerGitHub <noreply@github.com>2024-02-08 12:22:02 -0600
commit1899f4e1ba775b56f22d28862c6457fd6626d29a (patch)
tree036c77caba076a4e903825c73f140458f970898d
parente9469a5ca4c1e156430e02cc1d55c03c4a008613 (diff)
Sort categories ascending instead of leaving them in loaded order (#932)
-rw-r--r--src/charselect.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charselect.cpp b/src/charselect.cpp
index 7a3ec1a1..31cf4711 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); });