Realtime Database in firebase in chronological order of add

I put the data in 1, 2 .... 9, 10, 11
However, when the arrangement is: 1, 10, 11, 1, 2 .... 9
So how does it arrange 1, 2, 3, .... 10, 11ok

Maybe Try 01,02,03 ..... 10,11 ...
Or use some very large number. Say start from 1000000,1000001 and so on

1 Like

Thank you, When I put in the listview appinventor it was still out of order

Firebase sorts the tags in alpha-numeric order, there is nothing you can do about that.

You can change the naming of your tags from

Link1,Link2 etc
to
01Link,02Link

1 Like

It's fine to sort it out in firebase, but putting it in the app inventor listview doesn't hold the correct position anymore

If you want to sort your list before displaying it in a listview then:

Learn about using lists:

General Tutorials

or look in Extensions for a sorting routine

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.