Sorter
public class Sorter<K, V> where K : Reflectable, K : Comparable, K : Decodable, K : Encodable, K : Hashable, K : Identifiable, V : Reflectable, V : ReflectionDecodable, V : Comparable, V : CustomStringConvertible, V : Decodable, V : Encodable
describes a Sorter
with a Direction
(ascending, descending), the property
as a KeyPath
to the later sorted variable of a class
-
specifies the direction of sorting, ascending (
See more.asc
) or descending (.desc
)Declaration
Swift
public enum Direction