pub fn sort_by<F>(&self, compare: F)
    where
        F: FnMut(&T, &T) -> Ordering,
    {
        self.inner.borrow_mut().sort_by(compare);
        (self.update)();
    }
/// Sorts the list with a comparator function.
Sorts the list with a comparator function.
Sorts the list with a comparator function .
pub fn sort_by<F>(&self, compare: F)
    where
        F: FnMut(&T, &T) -> Ordering,
    {
        self.inner.borrow_mut().sort_by(compare);
        (self.update)();
    }
pub fn sort_by < F > ( & self , compare : F ) where F : FnMut ( & T , & T ) -> Ordering , { self . inner . borrow_mut ( ) . sort_by ( compare ) ; ( self . update ) ( ) ; }
Sorts the list with a comparator function.
Sorts the list with a comparator function .
&self
compare
F
&self
compare
F