pub fn sort<T, F>(&mut self, f: F)
	where
		T: PartialOrd,
		F: Fn(&Unit) -> T,
	{
		self.0.sort_by(cmp_by2(f));
	}
/// Sorts the collection by given function.
Sorts the collection by given function.
Sorts the collection by given function .
pub fn sort<T, F>(&mut self, f: F)
	where
		T: PartialOrd,
		F: Fn(&Unit) -> T,
	{
		self.0.sort_by(cmp_by2(f));
	}
pub fn sort < T , F > ( & mut self , f : F ) where T : PartialOrd , F : Fn ( & Unit ) -> T , { self . 0 . sort_by ( cmp_by2 ( f ) ) ; }
Sorts the collection by given function.
Sorts the collection by given function .
&mut self
f
F
&mut self
f
F