pub fn search_rec_compare(a: &SearchRec, b: &SearchRec) -> OrderingExpand description
The sort order for a directory listing: ".." last, directories after plain
files, then case-sensitive byte-order by name.
The sign of every branch matters — do not “tidy” it.
use tvision_rs::dialog::{SearchRec, search_rec_compare, FA_DIREC};
use core::cmp::Ordering;
let a = SearchRec { attr: 0, time: 0, size: 0, name: "..".into() };
let b = SearchRec { attr: 0, time: 0, size: 0, name: "foo".into() };
assert_eq!(search_rec_compare(&a, &b), Ordering::Greater); // ".." sorts last