{"action":"created","issue":{"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/225","labels_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/225/comments","events_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/225/events","html_url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/225","id":29326307,"number":225,"title":"Introduce @sortkey to support sorting annotation for a subobject","user":{"login":"mwjames","id":1245473,"avatar_url":"https://avatars.githubusercontent.com/u/1245473?v=3","gravatar_id":"","url":"https://api.github.com/users/mwjames","html_url":"https://github.com/mwjames","followers_url":"https://api.github.com/users/mwjames/followers","following_url":"https://api.github.com/users/mwjames/following{/other_user}","gists_url":"https://api.github.com/users/mwjames/gists{/gist_id}","starred_url":"https://api.github.com/users/mwjames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwjames/subscriptions","organizations_url":"https://api.github.com/users/mwjames/orgs","repos_url":"https://api.github.com/users/mwjames/repos","events_url":"https://api.github.com/users/mwjames/events{/privacy}","received_events_url":"https://api.github.com/users/mwjames/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/milestones/11","html_url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/milestones/SMW%202.0","labels_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/milestones/11/labels","id":620693,"number":11,"title":"SMW 2.0","description":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/367","creator":{"login":"mwjames","id":1245473,"avatar_url":"https://avatars.githubusercontent.com/u/1245473?v=3","gravatar_id":"","url":"https://api.github.com/users/mwjames","html_url":"https://github.com/mwjames","followers_url":"https://api.github.com/users/mwjames/followers","following_url":"https://api.github.com/users/mwjames/following{/other_user}","gists_url":"https://api.github.com/users/mwjames/gists{/gist_id}","starred_url":"https://api.github.com/users/mwjames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwjames/subscriptions","organizations_url":"https://api.github.com/users/mwjames/orgs","repos_url":"https://api.github.com/users/mwjames/repos","events_url":"https://api.github.com/users/mwjames/events{/privacy}","received_events_url":"https://api.github.com/users/mwjames/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":114,"state":"closed","created_at":"2014-04-04T17:22:31Z","updated_at":"2014-08-10T21:48:37Z","due_on":"2014-08-03T07:00:00Z","closed_at":"2014-08-10T21:48:37Z"},"comments":11,"created_at":"2014-03-13T05:06:36Z","updated_at":"2015-03-23T15:26:57Z","closed_at":"2014-05-25T05:00:02Z","pull_request":{"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/pulls/225","html_url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/225","diff_url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/225.diff","patch_url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/225.patch"},"body":"- `@sortkey` is a restricted keyword which allows to set an arbitrary sort value for a particular subobject\r\n- `@sortby` is a restricted keyword which allows to set a reference to a property which in return will use the value of the reference property as sort value\r\n\r\n`@sortby` and `@sortkey` are case sensitive, values are stored as a \"string\", and further will not appear visible to the end-user but subobject with a dedicated `_SKEY` will work the same way as a normal wiki page with a `_SKEY`.\r\n\r\n## Subobject example\r\n```\r\n{{#subobject:\r\n |Has group=test\r\n |Has value=1111\r\n |@sortby=Has value --> _SKEY=1111\r\n}}\r\n\r\n{{#subobject:\r\n |Has group=test\r\n |Has value=9999\r\n |@sortkey=A --> _SKEY=A\r\n}}\r\n```\r\n\r\n## Recurring events example\r\n```\r\n{{#set_recurring_event:property=Has date\r\n |start=January 4, 2010 05:00\r\n |end=June 8, 2011\r\n |unit=week\r\n |period=1\r\n |@sortby=Has date\r\n}}\r\n```\r\n\r\nEDIT:PR only adds `@sortkey`"},"comment":{"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/comments/85049417","html_url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/225#issuecomment-85049417","issue_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/225","id":85049417,"user":{"login":"kghbln","id":1104078,"avatar_url":"https://avatars.githubusercontent.com/u/1104078?v=3","gravatar_id":"","url":"https://api.github.com/users/kghbln","html_url":"https://github.com/kghbln","followers_url":"https://api.github.com/users/kghbln/followers","following_url":"https://api.github.com/users/kghbln/following{/other_user}","gists_url":"https://api.github.com/users/kghbln/gists{/gist_id}","starred_url":"https://api.github.com/users/kghbln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kghbln/subscriptions","organizations_url":"https://api.github.com/users/kghbln/orgs","repos_url":"https://api.github.com/users/kghbln/repos","events_url":"https://api.github.com/users/kghbln/events{/privacy}","received_events_url":"https://api.github.com/users/kghbln/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T15:26:57Z","updated_at":"2015-03-23T15:26:57Z","body":"@mwjames Just to get this right: There is no way to manipulate the order of sorting, i.e. results are always shown in descending order. So if one would want to change the sort order than the sortkeys will have to be changed."}}