{"action":"created","issue":{"url":"https://api.github.com/repos/popuparchive/pop-up-archive/issues/1036","labels_url":"https://api.github.com/repos/popuparchive/pop-up-archive/issues/1036/labels{/name}","comments_url":"https://api.github.com/repos/popuparchive/pop-up-archive/issues/1036/comments","events_url":"https://api.github.com/repos/popuparchive/pop-up-archive/issues/1036/events","html_url":"https://github.com/popuparchive/pop-up-archive/issues/1036","id":62575744,"number":1036,"title":"Improve sorting by date","user":{"login":"annewootton","id":1718286,"avatar_url":"https://avatars.githubusercontent.com/u/1718286?v=3","gravatar_id":"","url":"https://api.github.com/users/annewootton","html_url":"https://github.com/annewootton","followers_url":"https://api.github.com/users/annewootton/followers","following_url":"https://api.github.com/users/annewootton/following{/other_user}","gists_url":"https://api.github.com/users/annewootton/gists{/gist_id}","starred_url":"https://api.github.com/users/annewootton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annewootton/subscriptions","organizations_url":"https://api.github.com/users/annewootton/orgs","repos_url":"https://api.github.com/users/annewootton/repos","events_url":"https://api.github.com/users/annewootton/events{/privacy}","received_events_url":"https://api.github.com/users/annewootton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/popuparchive/pop-up-archive/labels/bug","name":"bug","color":"fef2c0"},{"url":"https://api.github.com/repos/popuparchive/pop-up-archive/labels/medium","name":"medium","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"pkarman","id":1205061,"avatar_url":"https://avatars.githubusercontent.com/u/1205061?v=3","gravatar_id":"","url":"https://api.github.com/users/pkarman","html_url":"https://github.com/pkarman","followers_url":"https://api.github.com/users/pkarman/followers","following_url":"https://api.github.com/users/pkarman/following{/other_user}","gists_url":"https://api.github.com/users/pkarman/gists{/gist_id}","starred_url":"https://api.github.com/users/pkarman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkarman/subscriptions","organizations_url":"https://api.github.com/users/pkarman/orgs","repos_url":"https://api.github.com/users/pkarman/repos","events_url":"https://api.github.com/users/pkarman/events{/privacy}","received_events_url":"https://api.github.com/users/pkarman/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/popuparchive/pop-up-archive/milestones/46","html_url":"https://github.com/popuparchive/pop-up-archive/milestones/June","labels_url":"https://api.github.com/repos/popuparchive/pop-up-archive/milestones/46/labels","id":1036787,"number":46,"title":"June","description":"Dedicated to site optimizations and Rails upgrade","creator":{"login":"baileyspace","id":833332,"avatar_url":"https://avatars.githubusercontent.com/u/833332?v=3","gravatar_id":"","url":"https://api.github.com/users/baileyspace","html_url":"https://github.com/baileyspace","followers_url":"https://api.github.com/users/baileyspace/followers","following_url":"https://api.github.com/users/baileyspace/following{/other_user}","gists_url":"https://api.github.com/users/baileyspace/gists{/gist_id}","starred_url":"https://api.github.com/users/baileyspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baileyspace/subscriptions","organizations_url":"https://api.github.com/users/baileyspace/orgs","repos_url":"https://api.github.com/users/baileyspace/repos","events_url":"https://api.github.com/users/baileyspace/events{/privacy}","received_events_url":"https://api.github.com/users/baileyspace/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":8,"state":"open","created_at":"2015-03-24T17:30:18Z","updated_at":"2015-04-13T19:59:20Z","due_on":"2015-04-17T07:00:00Z","closed_at":null},"comments":6,"created_at":"2015-03-18T03:06:36Z","updated_at":"2015-04-13T20:01:53Z","closed_at":null,"body":"We've tried to bandaid this in the past, but it's still acting funny. The sorting order often does not change when users choose ascending vs. descending sort. \r\n\r\nFor example:\r\nhttps://www.popuparchive.com/search?page=1&sortBy=date_created&sortOrder=asc&query=collection_id:%22583-Illinois%20Public%20Media%22\r\n\r\nvs.\r\nhttps://www.popuparchive.com/search?page=1&sortBy=date_created&sortOrder=desc&query=collection_id:%22583-Illinois%20Public%20Media%22\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/popuparchive/pop-up-archive/issues/comments/92481163","html_url":"https://github.com/popuparchive/pop-up-archive/issues/1036#issuecomment-92481163","issue_url":"https://api.github.com/repos/popuparchive/pop-up-archive/issues/1036","id":92481163,"user":{"login":"pkarman","id":1205061,"avatar_url":"https://avatars.githubusercontent.com/u/1205061?v=3","gravatar_id":"","url":"https://api.github.com/users/pkarman","html_url":"https://github.com/pkarman","followers_url":"https://api.github.com/users/pkarman/followers","following_url":"https://api.github.com/users/pkarman/following{/other_user}","gists_url":"https://api.github.com/users/pkarman/gists{/gist_id}","starred_url":"https://api.github.com/users/pkarman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkarman/subscriptions","organizations_url":"https://api.github.com/users/pkarman/orgs","repos_url":"https://api.github.com/users/pkarman/repos","events_url":"https://api.github.com/users/pkarman/events{/privacy}","received_events_url":"https://api.github.com/users/pkarman/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T20:01:53Z","updated_at":"2015-04-13T20:01:53Z","body":"when I click on a collection from the /collections page, I get all my items sorted **Newest Added to Oldest Added**.\r\n\r\nThe links you reference in the issue description are from a direct search, somehow. Hard to reverse-engineer from that URL. But definitely *not* from clicking on a collection link on the /collections page.\r\n\r\nWhat I'm hearing you say is that any time a **query** or **filter** parameter includes a *collection_id* then the default sort should be by **date_added desc**."}}