{"action":"created","issue":{"url":"https://api.github.com/repos/modx-ccc-2015/whishlist/issues/30","labels_url":"https://api.github.com/repos/modx-ccc-2015/whishlist/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/modx-ccc-2015/whishlist/issues/30/comments","events_url":"https://api.github.com/repos/modx-ccc-2015/whishlist/issues/30/events","html_url":"https://github.com/modx-ccc-2015/whishlist/issues/30","id":54745986,"number":30,"title":"[getResources]: Sort output order of resource IDs like input order AKA keep the sequence alive","user":{"login":"mindeffects","id":458619,"avatar_url":"https://avatars.githubusercontent.com/u/458619?v=3","gravatar_id":"","url":"https://api.github.com/users/mindeffects","html_url":"https://github.com/mindeffects","followers_url":"https://api.github.com/users/mindeffects/followers","following_url":"https://api.github.com/users/mindeffects/following{/other_user}","gists_url":"https://api.github.com/users/mindeffects/gists{/gist_id}","starred_url":"https://api.github.com/users/mindeffects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindeffects/subscriptions","organizations_url":"https://api.github.com/users/mindeffects/orgs","repos_url":"https://api.github.com/users/mindeffects/repos","events_url":"https://api.github.com/users/mindeffects/events{/privacy}","received_events_url":"https://api.github.com/users/mindeffects/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/modx-ccc-2015/whishlist/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/modx-ccc-2015/whishlist/labels/MODX%20extra","name":"MODX extra","color":"bfdadc"}],"state":"open","locked":false,"assignee":{"login":"pepimpepa","id":6367699,"avatar_url":"https://avatars.githubusercontent.com/u/6367699?v=3","gravatar_id":"","url":"https://api.github.com/users/pepimpepa","html_url":"https://github.com/pepimpepa","followers_url":"https://api.github.com/users/pepimpepa/followers","following_url":"https://api.github.com/users/pepimpepa/following{/other_user}","gists_url":"https://api.github.com/users/pepimpepa/gists{/gist_id}","starred_url":"https://api.github.com/users/pepimpepa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepimpepa/subscriptions","organizations_url":"https://api.github.com/users/pepimpepa/orgs","repos_url":"https://api.github.com/users/pepimpepa/repos","events_url":"https://api.github.com/users/pepimpepa/events{/privacy}","received_events_url":"https://api.github.com/users/pepimpepa/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-01-19T10:13:18Z","updated_at":"2015-02-07T11:00:07Z","closed_at":null,"body":"__Problem__\r\nOnce in a while I use _getResources_ with a specific order of IDs, like for \"show me related items which are stored in a TV as a comma separated list\". The input order ``` &resources=`34,22,108` ```represents the importants of the resources, so the output should have this order to. But getResources is a little bitchy on that.\r\n\r\n__Fix__\r\nIn _getResources_ this is possible to do with a trick: ``` &sortby=`FIELD(modResource.id, 34,22,108 )` ``` But this means that you have to double the ID list for \"&resources\" and \"&sortby\". Not that hard but also not really elegant.\r\n\r\n__Enhancement__\r\nCreating a sort option like ``` &sortby=`resources` ``` which uses the \"&resources\"-IDs for the sorting."},"comment":{"url":"https://api.github.com/repos/modx-ccc-2015/whishlist/issues/comments/73359678","html_url":"https://github.com/modx-ccc-2015/whishlist/issues/30#issuecomment-73359678","issue_url":"https://api.github.com/repos/modx-ccc-2015/whishlist/issues/30","id":73359678,"user":{"login":"pepimpepa","id":6367699,"avatar_url":"https://avatars.githubusercontent.com/u/6367699?v=3","gravatar_id":"","url":"https://api.github.com/users/pepimpepa","html_url":"https://github.com/pepimpepa","followers_url":"https://api.github.com/users/pepimpepa/followers","following_url":"https://api.github.com/users/pepimpepa/following{/other_user}","gists_url":"https://api.github.com/users/pepimpepa/gists{/gist_id}","starred_url":"https://api.github.com/users/pepimpepa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepimpepa/subscriptions","organizations_url":"https://api.github.com/users/pepimpepa/orgs","repos_url":"https://api.github.com/users/pepimpepa/repos","events_url":"https://api.github.com/users/pepimpepa/events{/privacy}","received_events_url":"https://api.github.com/users/pepimpepa/received_events","type":"User","site_admin":false},"created_at":"2015-02-07T11:00:07Z","updated_at":"2015-02-07T11:00:07Z","body":"We are going to start with this:)"}}