Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order Query Results #49

Open
dshanske opened this issue Jul 5, 2022 · 3 comments
Open

Order Query Results #49

dshanske opened this issue Jul 5, 2022 · 3 comments

Comments

@dshanske
Copy link
Member

dshanske commented Jul 5, 2022

This proposal, originally noted in #4 is a proposal that on any query, an order parameter would be accepted to adjust the order of the results.

The proposal included possible properties of:

  • reverse (reverse order)
  • ascending
  • descending

Prior art would include the WordPress order query options. https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters

They also offer not only order, but orderby.

@jalcine
Copy link

jalcine commented Jul 5, 2022

Using a order-by field would be interesting, but isn't something any of the projects I work on support. That said, I do support both desc, descending, ascending and asc for the value of order in Koype.

(Originally published at: https://jacky.wtf/2022/7/fa8N)

@dshanske
Copy link
Member Author

dshanske commented Jul 5, 2022

@jalcine I just added the idea because I had prior art.. what are you ascending, descending or reversing?

@jalcine
Copy link

jalcine commented Jul 8, 2022

I plan to use it for expiring content to show the oldest items first.

(Originally published at: https://jacky.wtf/2022/7/vW3M)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants