- Type Parameters:
A - the input Iterable and output List element type
B - the mapped Comparable type
- All Implemented Interfaces:
Fn1<Fn1<? super A,? extends B>,Fn1<java.lang.Iterable<A>,java.util.List<A>>>, Fn2<Fn1<? super A,? extends B>,java.lang.Iterable<A>,java.util.List<A>>, Applicative<Fn1<java.lang.Iterable<A>,java.util.List<A>>,Fn1<Fn1<? super A,? extends B>,?>>, Cartesian<Fn1<? super A,? extends B>,Fn1<java.lang.Iterable<A>,java.util.List<A>>,Fn1<?,?>>, Cocartesian<Fn1<? super A,? extends B>,Fn1<java.lang.Iterable<A>,java.util.List<A>>,Fn1<?,?>>, Contravariant<Fn1<? super A,? extends B>,Profunctor<?,Fn1<java.lang.Iterable<A>,java.util.List<A>>,Fn1<?,?>>>, Functor<Fn1<java.lang.Iterable<A>,java.util.List<A>>,Fn1<Fn1<? super A,? extends B>,?>>, Profunctor<Fn1<? super A,? extends B>,Fn1<java.lang.Iterable<A>,java.util.List<A>>,Fn1<?,?>>, Monad<Fn1<java.lang.Iterable<A>,java.util.List<A>>,Fn1<Fn1<? super A,? extends B>,?>>, MonadReader<Fn1<? super A,? extends B>,Fn1<java.lang.Iterable<A>,java.util.List<A>>,Fn1<Fn1<? super A,? extends B>,?>>, MonadRec<Fn1<java.lang.Iterable<A>,java.util.List<A>>,Fn1<Fn1<? super A,? extends B>,?>>, MonadWriter<Fn1<? super A,? extends B>,Fn1<java.lang.Iterable<A>,java.util.List<A>>,Fn1<Fn1<? super A,? extends B>,?>>
public final class SortBy<A,B extends java.lang.Comparable<B>>
extends java.lang.Object
implements Fn2<Fn1<? super A,? extends B>,java.lang.Iterable<A>,java.util.List<A>>
Given an Iterable and some mapping function from the Iterable element type to some
Comparable type, produce a sorted List of the original elements based on sorting applied to the
result of the mapping function. Note that this is both eager and monolithic.
- See Also:
Sort,
SortWith