MCPcopy Create free account
hub / github.com/YACReader/yacreader / sortedLibraries

Method sortedLibraries

YACReaderLibrary/yacreader_libraries.cpp:136–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136QList<YACReaderLibrary> YACReaderLibraries::sortedLibraries() const
137{
138 auto sortedLibraries = libraries;
139 std::sort(sortedLibraries.begin(), sortedLibraries.end(), [](const YACReaderLibrary &library1, const YACReaderLibrary &library2) { return naturalSortLessThanCI(library1.getName(), library2.getName()); });
140 return sortedLibraries;
141}
142
143QUuid YACReaderLibraries::getLibraryIdFromLegacyId(int legacyId) const
144{

Callers 1

serviceMethod · 0.80

Calls 2

naturalSortLessThanCIFunction · 0.85
getNameMethod · 0.45

Tested by

no test coverage detected