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

Method DoSort

WinArk/JobPropertiesDlg.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void CJobPropertiesDlg::DoSort(const SortInfo* si) {
35 if (si->hWnd == m_ProcList) {
36 auto comparer = [&](auto const& p1, auto const& p2) {
37 switch (si->SortColumn) {
38 case 0: return SortHelper::SortStrings(p1.Name, p2.Name, si->SortAscending);
39 case 1: return SortHelper::SortNumbers(p1.Id, p2.Id, si->SortAscending);
40 }
41 return false;
42 };
43 std::sort(m_Processes.begin(), m_Processes.end(), comparer);
44 }
45}
46
47void CJobPropertiesDlg::UpdateJob() {
48 CClientDC dc(*this);

Callers

nothing calls this directly

Calls 3

SortNumbersFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected