vuex-easy-firestore icon indicating copy to clipboard operation
vuex-easy-firestore copied to clipboard

Support for multiple `orderBy` fields + order direction

Open zv3 opened this issue 6 years ago • 3 comments

It'd be great if the order parameter could accept an array of arrays the same way the where parameter works, so that it gets translated to how you would do the same using the Firestore SDK directly:

query
  .orderBy('field1', descending: true) 
  .orderBy('field2', descending: false)
  ...
  .orderBy('fieldN', descending: false)

zv3 avatar Jul 20 '19 02:07 zv3

ok ;)

wasn't aware Firestore SDK had support for multiple orderBy 😆

mesqueeb avatar Jul 20 '19 04:07 mesqueeb

@zv3 I think i'll be keeping this for later for a while. 😅

I'm gonna do a 80% rewrite of the entire library when Vue 3 and the next Vuex version come out. Then I'll definitely add it.

Please remember that in most cases, you'll need LOCAL sorting anyway so please refer to this part of the documentation: https://mesqueeb.github.io/vuex-easy-firestore/query-data.html#where-orderby-filters Where it says "a note on orderBy"

mesqueeb avatar Aug 05 '19 02:08 mesqueeb


After about two years of open source, I finally got accepted for Github Sponsors!

💜 github.com/sponsors/mesqueeb 💜

A little about me:

  • I love open-source
  • 6 months ago I got a son, and am trying to be an awesome father 😅
  • I'm doing freelance work here and there as my main job

If anyone was helped with vuex-easy-firestore, I'd greatly appreciate any support!

BTW, donations get's paid DOUBLE by GitHub! (they're alchemists... 🦾)

Going forward 👨🏼‍💻

  • I got great plans for the future of vuex-easy-firestore going above and beyond!! Look forward to it!!
  • On to many more years of open-sourcing! 🎉

mesqueeb avatar Nov 25 '19 05:11 mesqueeb