# How to call multiple pieces of data from firebase when it is alphabetized

**URL:** <https://community.thunkable.com/t/how-to-call-multiple-pieces-of-data-from-firebase-when-it-is-alphabetized/2354841>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, beginner, help\
**Created:** [April 2, 2023, 4:57am UTC](https://community.thunkable.com/t/how-to-call-multiple-pieces-of-data-from-firebase-when-it-is-alphabetized/2354841 "2023-04-02T04:57:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloud9innovated34i7](https://avatars.discourse-cdn.com/v4/letter/c/8dc957/32.png) [@cloud9innovated34i7](https://community.thunkable.com/u/cloud9innovated34i7)\
**Post date:** [April 2, 2023, 4:57am UTC](https://community.thunkable.com/t/how-to-call-multiple-pieces-of-data-from-firebase-when-it-is-alphabetized/2354841/1 "2023-04-02T04:57:17Z")

</div>

I am working on a project that requires data being put into the firebase realtime database, to be recalled and added to a list. However, regardless of what data I add, it ends up being alphabetized and so I can’t recall that data by finding it through substrings. These are the blocks I am currently using, but it won’t work since the data is not split into a list properly, and the data is not sorted by most recent, rather it is alphabetized.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/d/9d8a1c00eb8a7ea0da25c4997073cfc82048c66d.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/8/e87597fbb81d8a47fffe094a91ea9bbda2838b1f.png)

This is an example of the json that is called for the data:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/5/b59d45db75f7e1f3d1e834bb01872a16ce2784c5.png)

How do I sort this data and add it to the list on thunkable? When I try doing it through substrings, it ends up repeating the first item on the json file and adding it multiple times as a text item on the list. Can I fix the data coming in into the realtime database and stop it from alphabetizing by altering my security rules?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 21, 2023, 7:51pm UTC](https://community.thunkable.com/t/how-to-call-multiple-pieces-of-data-from-firebase-when-it-is-alphabetized/2354841/2 "2023-04-21T19:51:25Z")

</div>

Why are you trying to reinvent the wheel?

You can use the object drawer to convert JSON to text or back to object instead of building your own list parser.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 21, 2023, 9:33pm UTC](https://community.thunkable.com/t/how-to-call-multiple-pieces-of-data-from-firebase-when-it-is-alphabetized/2354841/3 "2023-04-21T21:33:10Z")

</div>

Totally agree! If you have valid JSON, you can just parse it with `get property of object` blocks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 20, 2023, 9:33pm UTC](https://community.thunkable.com/t/how-to-call-multiple-pieces-of-data-from-firebase-when-it-is-alphabetized/2354841/4 "2023-07-20T21:33:31Z")

</div>

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