Skip to content

Instantly share code, notes, and snippets.

@hamnis
Created May 4, 2012 11:03
Show Gist options
  • Save hamnis/2594144 to your computer and use it in GitHub Desktop.
Save hamnis/2594144 to your computer and use it in GitHub Desktop.
Sorting in collection+json
{
"collection": {
"version": "1.0",
"href": "http://example.org",
"items": [],
"queries": [
{
"href": "http://example.org",
"rel": "self",
"data": [
{"name": "q"},
{"name": "field", "selection": ["age", "name", ""], "value": ""},
{"name": "direction", "selection": ["asc", "desc"], "value": "asc"}
]
}
]
 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment