SortBy


in_descending_order

Sorts the field in descending order.

Syntax

sort_by in_descending_order
sort_bymodified sort by request
in descending order:
.sorted_by(field("foo").in_descending_order)

in_ascending_order

Sorts the field in ascending order.

Syntax

sort_by in_ascending_order
sort_bymodified sort by request
in ascending order:
.sorted_by(field("foo").in_ascending_order)

then

Combines the output of sort expressions. The sorting precedence corresponds to the order of the method calls.

Syntax

sort_by then(sort_by/data_method sort_by)
sort_bymodified sort by request
sort by field1 then field2:
.sorted_by(field("field1").then(field("field2")))