iterator.cpp 285 B

1234567891011
  1. #include "iterator.h"
  2. #include <cstring>
  3. static int SortFTSENTByName(const FTSENT** a, const FTSENT** b) {
  4. return strcmp((*a)->fts_name, (*b)->fts_name);
  5. }
  6. TDirIterator::TOptions& TDirIterator::TOptions::SetSortByName() noexcept {
  7. return SetSortFunctor(SortFTSENTByName);
  8. }