| 34 | typedef QList<OrderItem> OrderList; |
| 35 | |
| 36 | static void internalSort(QList<LegacyModList::Mod> &what) |
| 37 | { |
| 38 | auto predicate = [](const LegacyModList::Mod &left, const LegacyModList::Mod &right) |
| 39 | { |
| 40 | return left.fileName().localeAwareCompare(right.fileName()) < 0; |
| 41 | }; |
| 42 | std::sort(what.begin(), what.end(), predicate); |
| 43 | } |
| 44 | |
| 45 | static OrderList readListFile(const QString &m_list_file) |
| 46 | { |