aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder/iterator.cpp
blob: 73703d31f91e08c50a662371ff6bf88c0def8d4a (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);
}