MCPcopy Create free account
hub / github.com/MultiMC/Launcher / internalSort

Function internalSort

launcher/minecraft/legacy/LegacyModList.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 typedef QList<OrderItem> OrderList;
35
36static 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
45static OrderList readListFile(const QString &m_list_file)
46{

Callers 1

updateMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected