Skip to content

Commit 4f73803

Browse files
committed
ignore case while sorting
1 parent be687ae commit 4f73803

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/OpenCOVER/cover/coVRFileManager.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,12 @@ void coVRFileManager::updateSupportedFormats()
18531853
return f;
18541854
}
18551855

1856-
bool operator<(const FilterList &o) const { return description < o.description; }
1856+
bool operator<(const FilterList &o) const
1857+
{
1858+
return std::lexicographical_compare(description.begin(), description.end(), o.description.begin(),
1859+
o.description.end(),
1860+
[](auto l, auto r) { return std::tolower(l) < std::tolower(r); });
1861+
}
18571862
};
18581863

18591864
std::vector<FilterList> filterLists;

0 commit comments

Comments
 (0)