This commit is contained in:
altalk23 2024-01-30 17:26:11 +03:00
commit c348fc8a55
2 changed files with 8 additions and 0 deletions

View file

@ -13,6 +13,7 @@
* Add utils for setting thread name, show it on log (832bcf81, ce53fb31)
* Add some launch arguments for geode (7ccaef90)
* Deprecate blocking file picking utils (ee97e2da)
* Sort mods by id in crashlog (984d1482)
## v2.0.0-beta.11

View file

@ -31,6 +31,13 @@ void crashlog::printMods(std::stringstream& stream) {
if (mods.empty()) {
stream << "<None>\n";
}
std::sort(mods.begin(), mods.end(), [](Mod* a, Mod* b) {
auto const s1 = a->getID();
auto const s2 = b->getID();
return std::lexicographical_compare(s1.begin(), s1.end(), s2.begin(), s2.end(), [](auto a, auto b) {
return std::tolower(a) < std::tolower(b);
});
});
using namespace std::string_view_literals;
for (auto& mod : mods) {
stream << fmt::format("{} | [{}] {}\n",