Sort List aphabetically

HI

I have the following Python Script and I wondering if it is possible to change it to have the following order:
2
9
12
16S
22S
23S
Q199
etc.

and not:
12
16S
2
22S
23S
9
Q199

Please need a Hand

OK

I haven’t… From where you got this? Or where I can get it?

HI

I installed it. But i’m too stupid for manage this correctly.

How you can see in the image of my first post, i have lists with 3 Elements and i need to sort those lists by the first element of each list.

Your List.SortNatural works perfect, but should somehow sort it by the index 0.

Please help

Kind regards

HI

Sorry for my bad explication.

Attached you see in the left list the result. The right list should be natural sorted with the first element of each list:

Frage für Forum 2.dyn (3.0 KB)

I hope that’s enough :slight_smile:

Yes you got the idea, but I explained it really bad :persevere:, so it is not exactly that.

The left list (code block) is the first list and the right list (code block) should be the result. So forget the right list (it is just the result). The left list should be sorted by the string values!
Do not take the numbers for keys, because they are variables.

Sorry for the miss understanding.

Thank you a lot

HI

I hope this explains what I need :flushed:

Thank you a lot

HI

After a little workaround I got what i needed.
Thank you a lot.

Kind regards

2 Likes