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

Feature request: links.jf2 sortby param #84

Closed
tantek opened this issue Jul 5, 2017 · 0 comments
Closed

Feature request: links.jf2 sortby param #84

tantek opened this issue Jul 5, 2017 · 0 comments

Comments

@tantek
Copy link
Contributor

tantek commented Jul 5, 2017

Currently, webmention.io jf2 results are h-entry items sorted by most recent (dt-published) first.

There are examples where other sortings would be useful, e.g. RSVPs for yes before no before maybe before interested. (Aside: slightly regretting not using "decline" for RSVP "no" as that would sort better, though since p-rsvp is an enum, we could define a canonical ordering of the rsvp enums as: no,interested,maybe,yes in increasing/up order)

One way of doing this would be a ?sortby query param for the links.jf2 endpoint, that would take a single property name for now (with optional up or down(default)?) e.g.
?sortby=rsvp
?sortby=published
?sortby=updated

or ?sortby="published up" for earliest first sorting (e.g. what you would display in a comments section, or perhaps even an ordered facepile)

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