{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/ccdproc/issues/274","labels_url":"https://api.github.com/repos/astropy/ccdproc/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/astropy/ccdproc/issues/274/comments","events_url":"https://api.github.com/repos/astropy/ccdproc/issues/274/events","html_url":"https://github.com/astropy/ccdproc/pull/274","id":125630437,"number":274,"title":"Add a 'sort' method to ImageFileCollection","user":{"login":"hamogu","id":498688,"avatar_url":"https://avatars.githubusercontent.com/u/498688?v=3","gravatar_id":"","url":"https://api.github.com/users/hamogu","html_url":"https://github.com/hamogu","followers_url":"https://api.github.com/users/hamogu/followers","following_url":"https://api.github.com/users/hamogu/following{/other_user}","gists_url":"https://api.github.com/users/hamogu/gists{/gist_id}","starred_url":"https://api.github.com/users/hamogu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamogu/subscriptions","organizations_url":"https://api.github.com/users/hamogu/orgs","repos_url":"https://api.github.com/users/hamogu/repos","events_url":"https://api.github.com/users/hamogu/events{/privacy}","received_events_url":"https://api.github.com/users/hamogu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-08T15:18:05Z","updated_at":"2016-01-11T03:27:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/astropy/ccdproc/pulls/274","html_url":"https://github.com/astropy/ccdproc/pull/274","diff_url":"https://github.com/astropy/ccdproc/pull/274.diff","patch_url":"https://github.com/astropy/ccdproc/pull/274.patch"},"body":"This uses the underlying table structure to do that sort, it also updates\r\nthe separate self._files accordingly.\r\nThis method allows me to set a the order in which the files are processed,\r\ne.g. I can iterate over all files and make plots sorted alphabetically by\r\n'OBJECT' or by 'OBS-TIME' or 'FILTER'.\r\n\r\nA related change is to sort the file list when reading files from a\r\ndirectory. This sorting is alphabetical, if the user does not like it\r\nthey can always use the new 'sort' function later.\r\nThis change makes the order of files that are read in reproducible, which is useful\r\nwhen the iterators are used to make plots of each file - I want the same order\r\nwhen I re-run my script.\r\n(Without this change the order of files seems to change randomly at times.)"},"comment":{"url":"https://api.github.com/repos/astropy/ccdproc/issues/comments/170423943","html_url":"https://github.com/astropy/ccdproc/pull/274#issuecomment-170423943","issue_url":"https://api.github.com/repos/astropy/ccdproc/issues/274","id":170423943,"user":{"login":"mwcraig","id":1147167,"avatar_url":"https://avatars.githubusercontent.com/u/1147167?v=3","gravatar_id":"","url":"https://api.github.com/users/mwcraig","html_url":"https://github.com/mwcraig","followers_url":"https://api.github.com/users/mwcraig/followers","following_url":"https://api.github.com/users/mwcraig/following{/other_user}","gists_url":"https://api.github.com/users/mwcraig/gists{/gist_id}","starred_url":"https://api.github.com/users/mwcraig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwcraig/subscriptions","organizations_url":"https://api.github.com/users/mwcraig/orgs","repos_url":"https://api.github.com/users/mwcraig/repos","events_url":"https://api.github.com/users/mwcraig/events{/privacy}","received_events_url":"https://api.github.com/users/mwcraig/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T03:27:02Z","updated_at":"2016-01-11T03:27:02Z","body":"@hamogu -- once again, thank you! Could you please add a short mention of this to https://github.com/astropy/ccdproc/blob/master/docs/ccdproc/image_management.rst ?"}}