Skip to content

Ability to reverse the contents of the FirebaseArray. #57

@cgossain

Description

@cgossain

Welcome to FirebaseUI and thanks for submitting an issue!

Please take a look at open issues, as well as resolved issues, to see if your issue is either already being addressed, or has been solved by someone else.

If 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.

If not, please feel free to fill in the following info so we can help faster!

Details:

Not relevant for this issue.

Explanation of your issue

Currently, 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.

Steps to reproduce

Not relevant for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions