MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / SortByDate

Function SortByDate

Explorer++/Explorer++/ShellBrowser/SortHelper.cpp:106–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106int SortByDate(
107 const BasicItemInfo_t &itemInfo1, const BasicItemInfo_t &itemInfo2, DateType dateType)
108{
109 switch (dateType)
110 {
111 case DateType::Created:
112 return CompareFileTime(&itemInfo1.wfd.ftCreationTime, &itemInfo2.wfd.ftCreationTime);
113
114 case DateType::Modified:
115 return CompareFileTime(&itemInfo1.wfd.ftLastWriteTime, &itemInfo2.wfd.ftLastWriteTime);
116
117 case DateType::Accessed:
118 return CompareFileTime(&itemInfo1.wfd.ftLastAccessTime, &itemInfo2.wfd.ftLastAccessTime);
119
120 default:
121 assert(false);
122 break;
123 }
124
125 return 0;
126}
127
128int SortByTotalSize(
129 const BasicItemInfo_t &itemInfo1, const BasicItemInfo_t &itemInfo2, bool TotalSize)

Callers 1

SortMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected