TheGenius
(Nihar Sail)
August 31, 2020, 3:30am
#1
C10 and C11 are added after C9 and they appear and also get fetched after C1.
I want the firebase data in natural sequence. What is the best way out?
(Sorry I am not an IT person. I just love this Kodular Platform to build apps hence I am here, so kind help is required.)
Thanks and Regards.
Use list utilities extension to sort your list in alphabetically no matter how it is arranged in firebase.
Search about this extension in community.
You can store in this secuense to keep the order
c01, c02, c03, …, c10, c11
TheGenius
(Nihar Sail)
August 31, 2020, 3:42am
#4
You are right but what will happen in case of C101, C1001?
TheGenius
(Nihar Sail)
August 31, 2020, 3:43am
#5
Okay I will check this. Thank you.
I don’t know how many items you need to store into firebase because you didn’t say so.
Over 100
c001, c002, c003, …
Over 1000
c0001, c0002, c0003, …
TheGenius
(Nihar Sail)
August 31, 2020, 4:00am
#7
Right, that means I have to assume some digits for that. Thank you for your support.
I’m glad my suggestions have helped you. Please mark the post with the solution to close the topic.
TheGenius
(Nihar Sail)
September 6, 2020, 5:45pm
#9
In firebase numbers are considered as a string… so the sequence I get is 1 , 11, 19 , 9 instead of 1, 9, 11, 19 .
what can be an alternate solution to get the required data in correct order?
You have to store values like 01, 09 like wise so that it can be sorted out in ascending order.
TheGenius
(Nihar Sail)
September 6, 2020, 6:23pm
#11
I tried that. It doesn’t even work that way… in that case firebase provides 100, 010, 011, 001 this sequence. And expected one is like 001, 010, 011, 100
So require some other working solution. Thank you.
Show your database structure i will try something
I solved your question from the first post in post #5
Now your last question is related to the same component but different. It has nothing to do with the initial question.
anyway you must use the bubble method to order the tags. it’s done in app invertor but you can do the same in kodular
https://www.imagnity.com/tutorials/app-inventor/list-sorting-on-app-inventor/
Edit: @The_K_Studio take a look at the link I’m sure you will be interested !!!
Tab Learn more next access to the web.
Edit: If you can access i can paste here the site ( I think ) …
TheGenius
(Nihar Sail)
September 7, 2020, 4:22am
#16
Shop Categories:
Trying to display in the same sequence.
Minimise all your database and just show all list of tags.
TheGenius
(Nihar Sail)
September 7, 2020, 6:01am
#18
Starting from 11 to 20 are the keys… why do you need another screenshot?
TheGenius
(Nihar Sail)
September 7, 2020, 6:03am
#19
Sorry, this is not the solution. It does not provide or keep the sequence.
It provides C01, C11, C10 order
Did you tried this order with list utilities extension?