pub fn sort_by_field(&mut self, field: ProcField) {
        match field {
            ProcField::TotalCpu => self
                .0
                .sort_by(|l, r| r.total.partial_cmp(&l.total).unwrap()),
        }
    }
/// Sort the processes by the field
///
/// See the `ProcField` docs for details
Sort the processes by the field
See the `ProcField` docs for details
Sort the processes by the field See the ` ProcField ` docs for details
pub fn sort_by_field(&mut self, field: ProcField) {
        match field {
            ProcField::TotalCpu => self
                .0
                .sort_by(|l, r| r.total.partial_cmp(&l.total).unwrap()),
        }
    }
pub fn sort_by_field ( & mut self , field : ProcField ) { match field { ProcField :: TotalCpu => self . 0 . sort_by ( | l , r | r . total . partial_cmp ( & l . total ) . unwrap ( ) ) , } }
Sort the processes by the field
See the `ProcField` docs for details
Sort the processes by the field See the ` ProcField ` docs for details
&mut self
field
ProcField
&mut self
field
ProcField