Closed snowdrop-bot closed 4 years ago
Implement sorting functionality for REST Data Panache. In a mailing list discussion there were two design suggestions for a query param:
?sort=field1,-field2
?sort=field1:asc,field2:desc
Personally I prefer the first option suggested by Ladislav. But if anybody has a good argument agains it, I wouldn't mind the other one either.
In any case the query parameter would be converted to a Panache Sort object and used when building a query.
Sort
https://github.com/quarkusio/quarkus/issues/10884
$upstream:10884$
Implement sorting functionality for REST Data Panache. In a mailing list discussion there were two design suggestions for a query param:
?sort=field1,-field2
?sort=field1:asc,field2:desc
Personally I prefer the first option suggested by Ladislav. But if anybody has a good argument agains it, I wouldn't mind the other one either.
In any case the query parameter would be converted to a Panache
Sort
object and used when building a query.https://github.com/quarkusio/quarkus/issues/10884
$upstream:10884$