How to create a list in ascending order

Hello friend
Please help me with my project.
I want to make a list based on the screenshot of the Firebase project that I want to put here.
How to create a list in ascending order by clicking a button.


bbb

You can use list add-on or listutil extension

I am creating an application for the first time in Kodular. You will help me.

How to create a list in ascending order by arranging blocks?
Please help improve this article or section by expanding it.

Give it if it has AIA file.

Do you wish to sort according to Roll No… or according to numbers ?

I have arranged the blocks this way but it doesn’t work

Roll No

I want to sort by roll number but it should come in the value list of the second number.

If you want to sort as per roll no then try like this after getting tag list
Screenshot_2021-10-03-22-08-45-59

I have arranged the blocks in this way. But there is no list of any kind

I am create project in first time
please help me.

Give it if it has AIA file. or block screensort

Do not worry ,just try like the above said method. I am not in system

In order simple sort to work numbers must have the same digits. See sorting if digits are not different

So create a procedure to add leading zeros and then sort list

blocks(66)

Once first list is sorted then you can sort second list according to indexes in first

1 Like

I have arranged the blocks in this way. But there is no list of any kind

Error ; For input string: “Roll No 31”

I am create project in first time
please help me.

Give it if it has AIA file. or block screensort

Post your aia here or pm your aia

If I arrange the blocks this way, I get a list like this.
If I change its block, I don’t get any result.
eee

I want a list like this
So help me.
bbb

As I said …

Use one join block and use three variable place, first place use get tag second place give plenty of spaces if you need or hyphen and in this place use get value …

But this will not give you the value in ascending list. But it can be possible just by doing trick as said by dora in her reply also plenty of alternativa wats is there to derive ascending order

list.aia (3.0 KB)

my firebase database
fff

I want a list like this
ggg

See below picture, values that are in red box can not retrieved cause are not saved correctly. Missing comma , so first correct your database in order to work

image

correct my firebase database

Try this to see how it works

lista3.aia (13.1 KB)