Skip to main content

sort_rows

Function sort_rows 

Source
pub fn sort_rows(
    rows: &[Vec<String>],
    col: usize,
    ascending: bool,
) -> Vec<Vec<String>>
Expand description

Returns a copy of rows sorted by column col (ascending = increasing) through compare_cells. A missing cell (a row too short) counts as empty. Reusable outside the widget: a reducer can sort its data in exactly the same way.