Skip to main content

mru_project_order

Function mru_project_order 

Source
pub fn mru_project_order(project_items: &[ProjectListItem]) -> Vec<usize>
Expand description

Returns indices into project_items ordered most-recently-opened first.

Projects that were never opened sort after all opened projects; ties are broken by display label so the switcher order stays deterministic. Callers cache the returned order alongside the rows it was derived from and rebuild it only when the rows change, keeping the sort off the render path.