{"action":"created","issue":{"url":"https://api.github.com/repos/questbeat/QBImagePicker/issues/79","labels_url":"https://api.github.com/repos/questbeat/QBImagePicker/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/questbeat/QBImagePicker/issues/79/comments","events_url":"https://api.github.com/repos/questbeat/QBImagePicker/issues/79/events","html_url":"https://github.com/questbeat/QBImagePicker/issues/79","id":97909064,"number":79,"title":"Not sorting photos exactly like native photoapp","user":{"login":"knutigro","id":591532,"avatar_url":"https://avatars.githubusercontent.com/u/591532?v=3","gravatar_id":"","url":"https://api.github.com/users/knutigro","html_url":"https://github.com/knutigro","followers_url":"https://api.github.com/users/knutigro/followers","following_url":"https://api.github.com/users/knutigro/following{/other_user}","gists_url":"https://api.github.com/users/knutigro/gists{/gist_id}","starred_url":"https://api.github.com/users/knutigro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knutigro/subscriptions","organizations_url":"https://api.github.com/users/knutigro/orgs","repos_url":"https://api.github.com/users/knutigro/repos","events_url":"https://api.github.com/users/knutigro/events{/privacy}","received_events_url":"https://api.github.com/users/knutigro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-29T10:37:28Z","updated_at":"2015-09-24T20:07:15Z","closed_at":null,"body":"I have noticed that QBImagePicker not has exactly same sorting as in the native iOS photoapp.\r\n\r\nLets say I edit a photo in Camera+ app and save it back to gallery.\r\nIn the native photopicker the photo I edited and saved will be down at the bottom since it was the last one I changed. The original will be at its original place according to its creation date.\r\n\r\nIn QBImagePicker the photo I edited will be just after at it's original according to it's original creation date.  \r\n "},"comment":{"url":"https://api.github.com/repos/questbeat/QBImagePicker/issues/comments/143035179","html_url":"https://github.com/questbeat/QBImagePicker/issues/79#issuecomment-143035179","issue_url":"https://api.github.com/repos/questbeat/QBImagePicker/issues/79","id":143035179,"user":{"login":"ataranlen","id":1933566,"avatar_url":"https://avatars.githubusercontent.com/u/1933566?v=3","gravatar_id":"","url":"https://api.github.com/users/ataranlen","html_url":"https://github.com/ataranlen","followers_url":"https://api.github.com/users/ataranlen/followers","following_url":"https://api.github.com/users/ataranlen/following{/other_user}","gists_url":"https://api.github.com/users/ataranlen/gists{/gist_id}","starred_url":"https://api.github.com/users/ataranlen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ataranlen/subscriptions","organizations_url":"https://api.github.com/users/ataranlen/orgs","repos_url":"https://api.github.com/users/ataranlen/repos","events_url":"https://api.github.com/users/ataranlen/events{/privacy}","received_events_url":"https://api.github.com/users/ataranlen/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T20:07:15Z","updated_at":"2015-09-24T20:07:15Z","body":"I was able to fix it on my end with the following code: \r\n```\r\n // Scroll to bottom\r\n    if (self.fetchResult.count > 0 && self.isMovingToParentViewController && !self.disableScrollToBottom) {\r\n        NSIndexPath *indexPath = [NSIndexPath indexPathForItem:(self.fetchResult.count - 1) inSection:0];\r\n        [self performSelector:@selector(scrollToIndexPath:) withObject:indexPath afterDelay:0.0f];\r\n    }\r\n}\r\n\r\n- (void)scrollToIndexPath:(NSIndexPath*)indexPath\r\n{\r\n    [self.collectionView scrollToItemAtIndexPath:indexPath atScrollPosition:UICollectionViewScrollPositionTop animated:NO];\r\n}\r\n```\r\nNot sure why the original code was no longer working, Apple must have changed something."}}