public class SortsKt
@NotNull
public static org.bson.conversions.Bson ascending(@NotNull
kotlin.reflect.KProperty... properties)
Create a sort specification for an ascending sort on the given properties.
properties - the properties, which must contain at least one@NotNull
public static org.bson.conversions.Bson ascending(@NotNull
java.util.List<? extends kotlin.reflect.KProperty<?>> properties)
Create a sort specification for an ascending sort on the given properties.
properties - the properties, which must contain at least one@NotNull
public static org.bson.conversions.Bson descending(@NotNull
kotlin.reflect.KProperty... properties)
Create a sort specification for a descending sort on the given properties.
properties - the properties, which must contain at least one@NotNull
public static org.bson.conversions.Bson descending(@NotNull
java.util.List<? extends kotlin.reflect.KProperty<?>> properties)
Create a sort specification for a descending sort on the given properties.
properties - the properties, which must contain at least one@NotNull
public static <T> org.bson.conversions.Bson sortByMetaTextScore(@NotNull
kotlin.reflect.KProperty<? extends T> $this$sortByMetaTextScore)
Create a sort specification for the text score meta getProjection on the given property.
@NotNull
public static org.bson.conversions.Bson orderBy(@NotNull
kotlin.reflect.KProperty[] sorts,
boolean ascending)
Combine multiple sort specifications. If any properties are repeated, the last one takes precedence.
sorts - the sort specificationsascending - if the sort is ascending@NotNull
public static org.bson.conversions.Bson orderBy(@NotNull
java.util.List<? extends kotlin.reflect.KProperty<?>> sorts,
boolean ascending)
Combine multiple sort specifications. If any properties are repeated, the last one takes precedence.
sorts - the sort specificationsascending - if the sort is ascending@NotNull
public static org.bson.conversions.Bson orderBy(@NotNull
java.util.Map<? extends kotlin.reflect.KProperty<? extends java.lang.Object>,java.lang.Boolean> sorts)
Combine multiple sort specifications. If any properties are repeated, the last one takes precedence.
sorts - the sort specifications