aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder/iterator.cpp
blob: b5969f7d0f01a9164da5a8f7a2677e5d48a7da72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "iterator.h" 
 
#include <cstring> 
 
static int SortFTSENTByName(const FTSENT** a, const FTSENT** b) { 
    return strcmp((*a)->fts_name, (*b)->fts_name); 
} 
 
TDirIterator::TOptions& TDirIterator::TOptions::SetSortByName() noexcept {
    return SetSortFunctor(SortFTSENTByName); 
}