# Reordering a local data source in a data list viewer

**URL:** <https://community.thunkable.com/t/reordering-a-local-data-source-in-a-data-list-viewer/762868>\
**Category:** Questions about Thunkable X\
**Created:** [August 23, 2020, 12:47pm UTC](https://community.thunkable.com/t/reordering-a-local-data-source-in-a-data-list-viewer/762868 "2020-08-23T12:47:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oreeldadln](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/oreeldadln/32/89185_2.png) [@oreeldadln](https://community.thunkable.com/u/oreeldadln)\
**Post date:** [August 23, 2020, 12:47pm UTC](https://community.thunkable.com/t/reordering-a-local-data-source-in-a-data-list-viewer/762868/1 "2020-08-23T12:47:23Z")

</div>

Hello,

I’m trying to create a diary with the local data source and present it with the data list viewer component.  
The problem is when I add a new row to this data source the new row is presented last.  
I want new rows to be first and the old ones to go to the bottom of the list.  
I know it is possible to do it with airtable / spreadsheet but those two aren’t good for my purpose.

is there a way to do it?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [August 23, 2020, 4:58pm UTC](https://community.thunkable.com/t/reordering-a-local-data-source-in-a-data-list-viewer/762868/2 "2020-08-23T16:58:57Z")

</div>

Hi,

the Data Viewer component displays data in the order in which it is located in the Data Source component. This means that you need to fill in the Data Source correctly. This problem can be solved, but I am afraid that its solution will not be as good as you expect. Why? Try it and see for yourself.

---

<div class="post-metadata">

**Author:** ![oreeldadln](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/oreeldadln/32/89185_2.png) [@oreeldadln](https://community.thunkable.com/u/oreeldadln)\
**Post date:** [August 23, 2020, 7:48pm UTC](https://community.thunkable.com/t/reordering-a-local-data-source-in-a-data-list-viewer/762868/3 "2020-08-23T19:48:21Z")

</div>

Can you explain how to do it, please?

thank you!

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [August 24, 2020, 5:40am UTC](https://community.thunkable.com/t/reordering-a-local-data-source-in-a-data-list-viewer/762868/4 "2020-08-24T05:40:21Z")

</div>

Base example scrLocalDBFilteredRecords in [https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/](https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/)

In this example, data for Data Viewer is taken from Local DB. But in your case, you need to take the data from List, because this will allow you to add entries to the top of the list. The algorithm will be as follows:

1. Add data to the list of objects

2. Copy data from the list of objects to Data Source

---

<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:24pm UTC](https://community.thunkable.com/t/reordering-a-local-data-source-in-a-data-list-viewer/762868/5 "2024-11-08T12:24:40Z")

</div>


