snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Implement sorting functionality for REST Data Panache #143

Closed snowdrop-bot closed 4 years ago

snowdrop-bot commented 4 years ago

Implement sorting functionality for REST Data Panache. In a mailing list discussion there were two design suggestions for a query param:

  1. ?sort=field1,-field2
  2. ?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$