Package io.objectbox.annotation
Annotation Interface OrderBy
Specifies ordering of related collection of
relation
E.g.: @OrderBy("name, age DESC") List collection;
If used as marker (@OrderBy List collection), then collection is ordered by primary key
invalid reference
Relation
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueComma-separated list of properties, e.g. "propertyA, propertyB, propertyC" To specify direction, add ASC or DESC after property name, e.g.: "propertyA DESC, propertyB ASC" Default direction for each property is ASC If value is omitted, then collection is ordered by primary key- Default:
""
-