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

Fix sortOrder in standard query string parameters #1286

Open
mmarum-sugarcrm opened this issue Jun 5, 2013 · 0 comments
Open

Fix sortOrder in standard query string parameters #1286

mmarum-sugarcrm opened this issue Jun 5, 2013 · 0 comments

Comments

@mmarum-sugarcrm
Copy link
Member

Original author: [email protected] (April 20, 2012 20:32:24)

SPECIFICATION BUGS ONLY - Description
=====================================
Currently, the Core API defines "sortOrder" as a MUST support query string parameter but does not define any means of specifying the field to which the sortOrder applies. For 3.0, i recommend deprecated the "sortOrder" parameter and introducing a new "sort" parameter whose value follows the basic syntax below:

sort-default-order = field
sort-default-field = "+" / "-"
sort-order-field = ("+" / "-") field
sort = 1*(sort-default-order / sort-default-field / sort-order-field)

For example:

&sort=+ (sort ascending by the server's chosen default sort field)
&sort=updated (sort by the "updated" field using the server's chosen default ordering)
&sort=+updated (sort ascending by the "updated" field)
&sort=-updated (sort descending by the "updated" field)
&sort=-updated,+name (sort descending by the "updated" field, then "descending" by the name field

Document affected:
==================
1.) Please attach a patch for the document if appropriate.
2.) Post a thread at
http://groups.google.com/group/opensocial-and-gadgets-spec/topics
linking to this issue report.
3.) Post a comment on this issue, linking back to the thread.

Original issue: http://code.google.com/p/opensocial-resources/issues/detail?id=1304

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

No branches or pull requests

1 participant