pub fn apply_order<T>(
order: &[String],
pages: &mut Vec<T>,
url_of: impl Fn(&T) -> &str,
)Expand description
Moves the pages named in order to the front, in that order.
Everything else keeps the order it already had. A named slug that is not present is skipped rather than inserted, so a stale entry costs nothing.