MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / DoSort

Method DoSort

WinArk/EnvironmentDlg.cpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17void CEnvironmentDlg::DoSort(const SortInfo* si) {
18 if (!si)
19 return;
20
21 std::sort(m_Vars.begin(), m_Vars.end(), [&](auto const& v1, auto const& v2) {
22 switch (si->SortColumn)
23 {
24 case 0: return SortHelper::SortStrings(v1.first, v2.first,si->SortAscending);
25 case 1: return SortHelper::SortStrings(v1.second, v2.second, si->SortAscending);
26 }
27 return false;
28 });
29}
30
31LRESULT CEnvironmentDlg::OnInitDialog(UINT, WPARAM, LPARAM, BOOL&) {
32 InitDynamicLayout();

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected