pub fn sort_by<F>(mut self, cmp: F) -> Self
            where F: FnMut(&OsString, &OsString) -> Ordering + 'static {
        self.opts.sorter = Some(Box::new(cmp));
        self
    }
/// Set a function for sorting directory entries.
///
/// If a compare function is set, the resulting iterator will return all
/// paths in sorted order. The compare function will be called to compare
/// names from entries from the same directory using only the name of the
/// entry.
///
/// ```rust,no-run
/// use std::cmp;
/// use std::ffi::OsString;
/// use walkdir::WalkDir;
///
/// WalkDir::new("foo").sort_by(|a,b| a.cmp(b));
/// ```
Set a function for sorting directory entries.
If a compare function is set, the resulting iterator will return all
paths in sorted order. The compare function will be called to compare
names from entries from the same directory using only the name of the
entry.




Set a function for sorting directory entries . If a compare function is set the resulting iterator will return all paths in sorted order . The compare function will be called to compare names from entries from the same directory using only the name of the entry .
pub fn sort_by<F>(mut self, cmp: F) -> Self
            where F: FnMut(&OsString, &OsString) -> Ordering + 'static {
        self.opts.sorter = Some(Box::new(cmp));
        self
    }
pub fn sort_by < F > ( mut self , cmp : F ) -> Self where F : FnMut ( & OsString , & OsString ) -> Ordering + ' static { self . opts . sorter = Some ( Box :: new ( cmp ) ) ; self }
Set a function for sorting directory entries.
Set a function for sorting directory entries .
mut self
cmp
F
mut self
cmp
F