FirebaseExtended / polymerfire

Polymer Web Components for Firebase
https://www.webcomponents.org/element/firebase/polymerfire
MIT License
459 stars 142 forks source link

Added reversed order for firebase-query #348

Closed iSuslov closed 6 years ago

iSuslov commented 6 years ago

This is very requested feature for lists sorted by timestamp. No need to store timestamp in negative order to get DESC order. Usage:

<firebase-query reversed path="..." order-by-child="..." limit-to-last="..."></firebase-query>

This is initialisation parameter, can not be changed dynamically to generate new query. But if new query created, it will take effect if this parameter was changed before results came to a client.

iSuslov commented 6 years ago

My bad, I added unrelated commits to the master branch so closing this PR and opening new #351