Ordinamento discendente di una listView

Thanks for your advice; but in the end instead of sorting the list with a specified comparator; I chose to sort the list by key, in ascending order.


Greetings
Nicola

@Juan_Antonio Crazy..I was about to make the APK..so I did the last checks; and I realize that sorting ascending doesn't work anymore :thinking:

lista_ordenada

borrar_orden.aia (2.3 KB)

This example is similar to the one @TIMAI2 pointed me to; only in my case, the numbers to be sorted are present in a ListView. P.s: I don't understand why sorting via a key doesn't work anymore :thinking:

Attach please a small aia with the data and listview

You seem to have ignored this suggestion

@TIMAI2 I used a variable like you told me; but I had thought of adding to it, the elements, through "Make a list".

@patel I am attaching the farmyard for you below
ConsumoCarburante_copy3 (1).aia (653.5 KB)

Avevo detto "Attach please a small aia with the data and listview". il tuo file ha 3 screen-

Excuse me, you are right; I didn't think about deleting a screen

Se vuoi aiuto devi allegare un progetto con i dati già presenti (e non da digitare) e con i soli blocchi che servono per poterlo testare-

Try these changes

ConsumoCarburante_copy3.aia (638.4 KB)

ConsumoCarburante_4.aia (638.5 KB)

I have reported the modifications of the blocks that you have proposed; but i can't figure out why, as soon as i go to add a number to the listview, the items disappear.

Non devi aggiungere un numero alla listview, devi aggiungerlo alla lista sottostante poi ricaricare la listview
ConsumoCarburante_5.aia (639.1 KB)

1 Like

Thank you very much for your patience in solving this descending order.
Greetings
Nicola

I just applied the advice that you gave TIMAI2 in post 2

Now that you make me think about it; @TIMAI2 had kind of given me the same advice, other than a few details. So I can only thank @TIMAI2 too, for his very kind support.

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