pub fn sort_by_importance(importance: &[u64]) -> Vec<usize>
Get the permutation that sorts by importance (descending).