# Item click list view con local storage

**URL:** https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867
**Category:** Questions about Thunkable X
**Created:** [March 13, 2022, 3:53pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867 "2022-03-13T15:53:34Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)
#### Post date: [March 20, 2022, 7:20pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/41 "2022-03-20T19:20:30Z")

</div>

so i have to change to variable

---

<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: [March 20, 2022, 7:21pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/42 "2022-03-20T19:21:36Z")

</div>

Remove this block.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/b/db311b7c8f04812546a794e97f9f83228118c407.png)

You need the row number to update the `Apellidos` column.

---

<div class="post-metadata">

### Author: ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)
#### Post date: [March 20, 2022, 7:26pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/43 "2022-03-20T19:26:33Z")

</div>

I’m sorry but I do not understand

---

<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: [March 20, 2022, 7:28pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/44 "2022-03-20T19:28:37Z")

</div>

**Delete** this block from your code. the one with the red arrow.

---

<div class="post-metadata">

### Author: ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)
#### Post date: [March 20, 2022, 7:32pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/45 "2022-03-20T19:32:29Z")

</div>

I deleted it but it doesn’t work

---

<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: [March 20, 2022, 7:33pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/46 "2022-03-20T19:33:28Z")

</div>

Then you need to give a link to your project so someone looks at it in details.

---

<div class="post-metadata">

### Author: ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)
#### Post date: [March 20, 2022, 7:35pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/47 "2022-03-20T19:35:54Z")

</div>

a question can you alphabetize the data of a data viewer list

---

<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: [March 20, 2022, 7:46pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/48 "2022-03-20T19:46:25Z")

</div>

> [@yamiletcurbeloaceved](#):
>
> alphabetize the data of a data viewer list

Yes, and No. Data Viewer List will list what is in the table with the same order appears in the table.

So you can reorder the rows in the table and this will be reflected in the Data Viewer List.

See this example of sorting a local DB  
[https://x.thunkable.com/projectPage/6103dec760c70500ef73d4b0](https://x.thunkable.com/projectPage/6103dec760c70500ef73d4b0)

---

<div class="post-metadata">

### Author: ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)
#### Post date: [March 20, 2022, 8:00pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/49 "2022-03-20T20:00:33Z")

</div>

OK, thank you very much for your help

---

<div class="post-metadata">

### Author: ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)
#### Post date: [March 21, 2022, 6:31pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/50 "2022-03-21T18:31:44Z")

</div>

hello, sorry to bother you again in the tutorial you shared, it is with two data viewers, in my case I have one and it would not be with a button, but when opening the screen it shows me the ordered data, I tried to do it by applying the code but it repeats itself . If there is any way to do better I would appreciate it.

 ![Sin título 1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/6/1605232d94d5402e83972c7955f430399b0c13c8.png)

---

<div class="post-metadata">

### Author: ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)
#### Post date: [March 21, 2022, 7:02pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/51 "2022-03-21T19:02:47Z")

</div>

I did it this way and I removed this block because the names are repeated:

 ![Sin título 2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/7/579f44584b3d51a81c6527e9ebd09afd1a49dcf9.png)

---

<div class="post-metadata">

### Author: ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)
#### Post date: [March 24, 2022, 12:20am UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/52 "2022-03-24T00:20:21Z")

</div>

Hello, good evening, thank you very much for the help and sorry if I bother you again in the example you shared, it is ordered with two viewers but the intention is through an order button in a single viewer.

Thank you.

---

<div class="post-metadata">

### Author: ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)
#### Post date: [March 24, 2022, 12:39am UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/53 "2022-03-24T00:39:47Z")

</div>

I really don’t understand the shared code very much, I try to do it and the names are inserted again and they are not ordered.

---

<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: [March 24, 2022, 8:35am UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/54 "2022-03-24T08:35:02Z")

</div>

You need to be more specific and share images of your code or a link to your project.

---

<div class="post-metadata">

### Author: ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)
#### Post date: [March 24, 2022, 12:57pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/55 "2022-03-24T12:57:15Z")

</div>

Hello, let’s see, I want that when I open the screen the elements of the data viewer are ordered alphabetically.  
something like that:

 ![Sin título 1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/c/4caf7091f5a8dbe545284d8c66d3242df489979b.png)

---

<div class="post-metadata">

### Author: ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)
#### Post date: [March 24, 2022, 11:16pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/56 "2022-03-24T23:16:18Z")

</div>

If someone could help me I would appreciate it I have it like the code above but it doesn’t work and I would like that when I open the screen they are sorted alphabetically is there a way

Thank you.

---

<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: [March 25, 2022, 12:11am UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/57 "2022-03-25T00:11:18Z")

</div>

If you are using a Data Viewer List and you want items sorted, then you have to sort the Data Source itself.

---

<div class="post-metadata">

### Author: ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)
#### Post date: [March 25, 2022, 12:16am UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/58 "2022-03-25T00:16:17Z")

</div>

ok the problem is that I don’t know how to do it

---

<div class="post-metadata">

### Author: ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)
#### Post date: [March 25, 2022, 12:32am UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/59 "2022-03-25T00:32:10Z")

</div>

Let’s see, I want that as I save data and they are shown in the data viewer, they are sorted, do you understand?

---

<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: [March 25, 2022, 1:03am UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/60 "2022-03-25T01:03:49Z")

</div>

I do. You’ll have to sort the data source itself. Looks like @muneer gave you an example of how to do this:

> [@Item click list view con local storage](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/48):
>
> Yes, and No. Data Viewer List will list what is in the table with the same order appears in the table. So you can reorder the rows in the table and this will be reflected in the Data Viewer List. See this example of sorting a local DB [https://x.thunkable.com/projectPage/6103dec760c70500ef73d4b0](https://x.thunkable.com/projectPage/6103dec760c70500ef73d4b0)

What is your data source? Local table, Google Sheet, Airtable, Firebase?

[Previous page](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867.md?page=2)

[Next page](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867.md?page=4)
