diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-07-08 23:05:33 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-07-08 23:05:33 +0200 |
commit | 6349800f070781b29e1ab3674d1872a3ce070e19 (patch) | |
tree | 3f6f2b6e0b54b38b65e7cb9f31e697c832e29c44 /logic | |
parent | 9b3ae29a361b4d89897c34750ea170d4433b93be (diff) | |
download | MultiMC-6349800f070781b29e1ab3674d1872a3ce070e19.tar MultiMC-6349800f070781b29e1ab3674d1872a3ce070e19.tar.gz MultiMC-6349800f070781b29e1ab3674d1872a3ce070e19.tar.lz MultiMC-6349800f070781b29e1ab3674d1872a3ce070e19.tar.xz MultiMC-6349800f070781b29e1ab3674d1872a3ce070e19.zip |
Fix mod list sorting predicate, convert the changelog to markdown and reverse it.
Diffstat (limited to 'logic')
-rw-r--r-- | logic/ModList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/ModList.cpp b/logic/ModList.cpp index 3382a6ef..a1605506 100644 --- a/logic/ModList.cpp +++ b/logic/ModList.cpp @@ -69,9 +69,9 @@ void ModList::internalSort(QList<Mod> &what) { if (left.name() == right.name()) { - return left.mmc_id().localeAwareCompare(right.mmc_id()) <= 0; + return left.mmc_id().localeAwareCompare(right.mmc_id()) < 0; } - return left.name().localeAwareCompare(right.name()) <= 0; + return left.name().localeAwareCompare(right.name()) < 0; }; std::sort(what.begin(), what.end(), predicate); } |