# Merge lists in object and sort data

**URL:** <https://community.thunkable.com/t/merge-lists-in-object-and-sort-data/3410871>\
**Category:** Questions about Thunkable X\
**Created:** [December 12, 2024, 10:20pm UTC](https://community.thunkable.com/t/merge-lists-in-object-and-sort-data/3410871 "2024-12-12T22:20:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert.newton.442rpp](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@robert.newton.442rpp](https://community.thunkable.com/u/robert.newton.442rpp)\
**Post date:** [December 12, 2024, 10:20pm UTC](https://community.thunkable.com/t/merge-lists-in-object-and-sort-data/3410871/1 "2024-12-12T22:20:17Z")

</div>

Here is example of data what I have. Data are calculated from different sheets and preview in two lists.

 ![unsorted data](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/e/fe5506bb1c8dfd7772b49d715be2e36467229e14.png)

Now I must sort those and get this. Values from users must follow points during sort.

 ![sorted data](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/2/321b0167366657087703e4b0cea86cfd12b9a74a.png)

I search and find how lists can be merged into object and then sorted. Here is my exmple but app crash when I run it.

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

I guess something with data types and object is not correct.  
Notice: data should be sorted by values in list userpointslist.  
Is it possible done it somehow without object, just with list? Maybe with sort numeric descending in list options?  
Thanks guys for help.

---

<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:** [December 17, 2024, 8:36pm UTC](https://community.thunkable.com/t/merge-lists-in-object-and-sort-data/3410871/2 "2024-12-17T20:36:18Z")

</div>

Hello @robert.newton.442rpp  
The issue is with the [“sort numeric descending” block](https://docs.thunkable.com/blocks/blocks/lists#sort-list).  
This block needs to be connected to a list and the [get property block](https://docs.thunkable.com/blocks/blocks/objects#get-property-of-object) returns null because the block doesn’t specify which item in the list you would like to get the property.

Instead of using two lists, I suggest using one data source(Google Sheets or Airtable) and sorting it using the sort view: [Data Sources | Thunkable Docs](https://docs.thunkable.com/getting-started/data-sources#sort)

---

<div class="post-metadata">

**Author:** ![robert.newton.442rpp](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@robert.newton.442rpp](https://community.thunkable.com/u/robert.newton.442rpp)\
**Post date:** [December 17, 2024, 9:39pm UTC](https://community.thunkable.com/t/merge-lists-in-object-and-sort-data/3410871/3 "2024-12-17T21:39:27Z")

</div>

Thanks for help but yesterday I manage solve problem. There is few issuses with my code.  
Here is working solution. I can’t use filter is data source since data are first calculated and then it should be sorted.

I manage solve it thank to this topic.

> [@Retrieving data from a list, based on another sorted list](https://community.thunkable.com/t/retrieving-data-from-a-list-based-on-another-sorted-list/1365355/10):
>
> I mean this way Now, every element in the list has both the number and the corresponding letter.

---

<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:** [March 17, 2025, 9:39pm UTC](https://community.thunkable.com/t/merge-lists-in-object-and-sort-data/3410871/4 "2025-03-17T21:39:46Z")

</div>

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