reorder_for_mru

Function reorder_for_mru 

Source
pub fn reorder_for_mru<T, F>(windows: &mut Vec<T>, get_id: F)
where F: Fn(&T) -> &str,
Expand description

Reorders windows placing current window at the end.

Places “previous” window at index 0 for visual display.