{"action":"closed","issue":{"url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/57","repository_url":"https://api.github.com/repos/firebase/FirebaseUI-iOS","labels_url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/57/comments","events_url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/57/events","html_url":"https://github.com/firebase/FirebaseUI-iOS/issues/57","id":154873120,"number":57,"title":"Ability to reverse the contents of the FirebaseArray.","user":{"login":"cgossain","id":4530292,"avatar_url":"https://avatars.githubusercontent.com/u/4530292?v=3","gravatar_id":"","url":"https://api.github.com/users/cgossain","html_url":"https://github.com/cgossain","followers_url":"https://api.github.com/users/cgossain/followers","following_url":"https://api.github.com/users/cgossain/following{/other_user}","gists_url":"https://api.github.com/users/cgossain/gists{/gist_id}","starred_url":"https://api.github.com/users/cgossain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgossain/subscriptions","organizations_url":"https://api.github.com/users/cgossain/orgs","repos_url":"https://api.github.com/users/cgossain/repos","events_url":"https://api.github.com/users/cgossain/events{/privacy}","received_events_url":"https://api.github.com/users/cgossain/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-14T20:05:21Z","updated_at":"2016-05-16T14:20:07Z","closed_at":"2016-05-16T14:20:07Z","body":"Welcome to FirebaseUI and thanks for submitting an issue!\r\n\r\nPlease take a look at [open issues](https://github.com/firebase/FirebaseUI-iOS/issues?q=is%3Aopen+is%3Aissue), as well as [resolved issues](https://github.com/firebase/FirebaseUI-iOS/issues?q=is%3Aissue+is%3Aclosed), to see if your issue is either already being addressed, or has been solved by someone else.\r\n\r\nIf your issue concerns the CocoaPods error, \"...transitive dependencies that include static binaries\", please take a look at any of the following issues and see if your problem is solved: #48, #47, #46, #34, #23.\r\n\r\nIf not, please feel free to fill in the following info so we can help faster!\r\n\r\n### Details:\r\nNot relevant for this issue.\r\n\r\n### Explanation of your issue\r\n\r\nCurrently, a \"queryOrderedByChild:\" with Firebase can only returns results in ascending order. A quick fix for this would be to provide a flag on the FirebaseArray that would simply reverse the order of the returned results. This would also mean that change notifications would be interpreted in the reverse order as well (i.e. inserts, deletes, moves, would have their indices interpreted in the reverse order if this flag were enabled). Of course this flag should not care about the type of query you are doing, all it would do is interpret any data in the array in the reverse order.\r\n\r\n### Steps to reproduce\r\nNot relevant for this issue."}}