Skip to main content

Module sort

Module sort 

Source
Expand description

Folder-listing sort: types and inference cascade.

Pure Rust, zero I/O. Consumed by:

  • the build pipeline (scan pass, card renderer, series-nav)
  • the editor form (to show “inferred: date” next to undeclared sort:)

See docs/archive/2026-05-17-listing-sort-and-embeds-design.md.

Structs§

ResolvedSort

Enums§

SortAxis
SortField

Traits§

SortableDoc
Minimal document trait for sort inference. Both src-tauri’s ParsedDocument and the editor’s in-memory document model implement this.
SortableLabel
Optional supplementary trait for label-based sorting. Implementations that want Title-axis support implement both SortableDoc and SortableLabel.

Functions§

resolve_folder_sort
sort_by_resolved