Closed caneroj1 closed 2 years ago
Thank you for contributing this!
How about adding a variable-length argument version of the method which takes (String, Order)*
instead of Iterable[(String, Order)]
? Other methods of QueryBuilderBase
use variable-length argument to take multiple fields.
Thank you for contributing this!
How about adding a variable-length argument version of the method which takes
(String, Order)*
instead ofIterable[(String, Order)]
? Other methods ofQueryBuilderBase
use variable-length argument to take multiple fields.
Thanks for the suggestion. Removed Iterable
and switched to variable-length args for consistency with other QueryBuildBase
methods.
Thank you!
Thank you!
No problem! Hopefully a new version can be published soon :)
@caneroj1 Just released 0.0.27. It will be available in Maven Central shortly.
The current implementation of
sortBy
does not allow for multiple sort fields and order to be specified for more advanced sorting use cases when ordering results.This PR adds a new overload of
sortBy
that expects anIterable[(String, Order)]
. This is converted to a list ofSortClause
objects to be passed tosetSorts
when preparing the query.