Function rg::args::sort_by_option

source ·
fn sort_by_option<T: Ord>(
    p1: &Option<T>,
    p2: &Option<T>,
    reverse: bool
) -> Ordering
Expand description

Sorts by an optional parameter. If parameter is found to be None, both entries compare equal.