sort_by_dir_and_name() — tailwindcss Function Reference
Architecture documentation for the sort_by_dir_and_name() function in detect_sources.rs from the tailwindcss codebase.
Entity Profile
Relationship Graph
Source Code
crates/oxide/src/scanner/detect_sources.rs lines 23–29
fn sort_by_dir_and_name(a: &DirEntry, z: &DirEntry) -> Ordering {
match (a.file_type().is_dir(), z.file_type().is_dir()) {
(true, false) => Ordering::Less,
(false, true) => Ordering::Greater,
_ => a.file_name().cmp(z.file_name()),
}
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free