Ionic firebase database in random order

Hello ionic friends.
I have a database in firebase from which I make a list in my ionic program. Is there a way to get my results in random order?
Thank you all in advance.

No. But you can download the data to an array, and then scramble the array. Process the data in a provider before rendering it in a page.

Thanks Aaron for your response

How about using Google Cloud Functions for that use case?

You access the cloud function, that is requesting data from your database and scrambling it. Then returns the scrambled data.

1 Like