# More JSON - Sort Object List by Object Property

**URL:** <https://community.thunkable.com/t/more-json-sort-object-list-by-object-property/904479>\
**Category:** Questions about Thunkable X\
**Tags:** solved, json, sort\
**Created:** [October 15, 2020, 1:15pm UTC](https://community.thunkable.com/t/more-json-sort-object-list-by-object-property/904479 "2020-10-15T13:15:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [October 15, 2020, 1:15pm UTC](https://community.thunkable.com/t/more-json-sort-object-list-by-object-property/904479/1 "2020-10-15T13:15:19Z")

</div>

Thunkable includes a block to sort simple lists (number, text), but EVERYONE (well me anyway) wants to filter and sort complex data (database rows, JSON trees).

Here is a modified bubble sort that can sort in ascending or descending order based on any property within the JSON object.

Project Link  
Remix Link good until December 2020  
[https://x.thunkable.com/copy/1f7bb00aebca280ce079233152137562](https://x.thunkable.com/copy/1f7bb00aebca280ce079233152137562)

Blocks

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/7/172601f338d560a336afa185a74aa2c933258a46.png)

Example Output

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

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 15, 2020, 3:59pm UTC](https://community.thunkable.com/t/more-json-sort-object-list-by-object-property/904479/2 "2020-10-15T15:59:47Z")

</div>

I think one benefit for Thunkable users would be being able to work with the backend that completes the filtering and ordering for you.

I am working on this tutorial currently. I have a project available that I could share if you were interested in a Dr. Ted. It requires a small bit of work on your part to set up a backend but that is also no code.

Also, the app looks good!

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [October 15, 2020, 4:42pm UTC](https://community.thunkable.com/t/more-json-sort-object-list-by-object-property/904479/3 "2020-10-15T16:42:39Z")

</div>

Thanks, but I’m trying to minimize the 3rd party apps I incorporate into my Thunking. Even though Google has burned me by discontinuing services/apps before (e.g. Classic Sites), I do include google products (maps, firebase, docs). Other than that, I try to steer clear of third party services to minimize the chances of my app becoming inoperable for reasons beyond my control and to make them more accessible/replicatable by other Thunkers.

So I’ll just keep rolling my own solitions and wrapping them in Thunkable functions.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 15, 2020, 4:46pm UTC](https://community.thunkable.com/t/more-json-sort-object-list-by-object-property/904479/4 "2020-10-15T16:46:47Z")

</div>

Don’t stop. I didn’t mean it that way. I think what you are doing here is really cool, tbh. I’d like to review it, make notes, and do a video about it so people can understand the concept or reasons a little better instead of just copying blocks.

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [October 15, 2020, 5:31pm UTC](https://community.thunkable.com/t/more-json-sort-object-list-by-object-property/904479/5 "2020-10-15T17:31:03Z")

</div>

sorry if my post sounds peevish. I appreciate your feedback and suggestions!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:22pm UTC](https://community.thunkable.com/t/more-json-sort-object-list-by-object-property/904479/6 "2024-11-08T12:22:07Z")

</div>



---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [December 19, 2024, 5:01pm UTC](https://community.thunkable.com/t/more-json-sort-object-list-by-object-property/904479/7 "2024-12-19T17:01:25Z")

</div>


