pub fn check_sorted_opt_ary_with(opt_ary: &[Opt]) -> bool {
    let mut target = opt_ary.to_vec();
    target.sort_by(|&a, &b| match a.lon.cmp(b.lon) {
        Ordering::Less => Ordering::Less,
        Ordering::Greater => Ordering::Greater,
        Ordering::Equal => match a.sho.cmp(&b.sho) {
            Ordering::Less => Ordering::Less,
            Ordering::Greater => Ordering::Greater,
            Ordering::Equal => a.num.cmp(&b.num),
        },
    });
    target == opt_ary
}
/// Check only sorted opt ary table.
Check only sorted opt ary table.
Check only sorted opt ary table .
pub fn check_sorted_opt_ary_with(opt_ary: &[Opt]) -> bool {
    let mut target = opt_ary.to_vec();
    target.sort_by(|&a, &b| match a.lon.cmp(b.lon) {
        Ordering::Less => Ordering::Less,
        Ordering::Greater => Ordering::Greater,
        Ordering::Equal => match a.sho.cmp(&b.sho) {
            Ordering::Less => Ordering::Less,
            Ordering::Greater => Ordering::Greater,
            Ordering::Equal => a.num.cmp(&b.num),
        },
    });
    target == opt_ary
}
pub fn check_sorted_opt_ary_with ( opt_ary : & [ Opt ] ) -> bool { let mut target = opt_ary . to_vec ( ) ; target . sort_by ( | & a , & b | match a . lon . cmp ( b . lon ) { Ordering :: Less => Ordering :: Less , Ordering :: Greater => Ordering :: Greater , Ordering :: Equal => match a . sho . cmp ( & b . sho ) { Ordering :: Less => Ordering :: Less , Ordering :: Greater => Ordering :: Greater , Ordering :: Equal => a . num . cmp ( & b . num ) , } , } ) ; target == opt_ary }
Check only sorted opt ary table.
Check only sorted opt ary table .
opt_ary
&[Opt]
opt_ary
&[Opt]