need to put in order a list with a list that has a structure like this: "28,28/3/2025,Satispay,Pettinatrice,no
" and I should put it in order by date (index2). I tried examples (ListUtil) but it doesn't work. Can you help me? Thanks
show us your sample datas
No extensions needed for this. AppInventor includes more advanced list sorting blocks. These blocks sort the list by date:
SORT_DATE.aia (2.7 KB)
Your dates are "unsortable" in that format, reverse them, and remove the slashes for compatibility:
2025-03-28
Thank you for your suggest, i try.
Your solution is ok, but for to change the variable "data" and to replace with a list ready
example: i read a txt file and import on a list, is possible?
On this image my list is "LIstInUso"
Show entire sample txt file.
-
- The file txt is loaded on Media
-
- i read file
-
- after readed, build list (ListaInUso)
-
- store on tinydb
Budget.txt (5.2 KB)
So your "text" is the same as my "global data". Put my blocks in the GotText event, and put the "text" value where the "global data" is.
I understand my problem is the list (ListaInUso), because is not formatted correctly and i riceve an error.

Apply a Do It to the circled item, to show us what is in it.
Remove the first global variable and it set value on button click event. It will be ok
sorry, can you explain better which variable and where to set the value. Thanks.
In your previous screenshot you have circled know try removing it and test
On button click
Set global lists no sorted to list from csv row table to set global listarigheBudget
Remove these blocks:
Instead, add this:
global.ListaInUso=list from csv table text.text
then use this:
But instead of the list_no_sorted variable use ListaInUso.
Thank you, it works perfectly. You are very Expert.