QuerySortByReflection
Sort specification for api queries. You can specify QuerySortByReflection by referencing kotlin class property or passing field name as string instance. QuerySortByReflection.asc(Channel::memberCount) and QuerySortByReflection.asc
Inherited properties
Functions
Link copied to clipboard
Creates a QuerySortByReflection with ASC as SortDirection
Link copied to clipboard
open override fun comparatorFromFieldSort(firstSort: SortAttribute.FieldSortAttribute<T>, sortDirection: SortDirection): Comparator<T>
Comparator from SortAttribute.FieldSortAttribute
Link copied to clipboard
open override fun comparatorFromNameAttribute(name: SortAttribute.FieldNameSortAttribute<T>, sortDirection: SortDirection): Comparator<T>
Comparator from SortAttribute.FieldNameSortAttribute
Link copied to clipboard
Creates a QuerySortByReflection with DESC as SortDirection
Inherited functions
Link copied to clipboard
inline fun <T : Any> QuerySortByReflection<T>.ascByName(fieldName: String): QuerySortByReflection<T>
Adds a field to QuerySortByReflection using the name of field in the direction ASC.
Link copied to clipboard
inline fun <T : Any> QuerySortByReflection<T>.descByName(fieldName: String): QuerySortByReflection<T>
Adds a field to QuerySortByReflection using the name of field in the direction DESC.