List.ShortByFunction with Point.X value with group

Hi all,
How to get list with point-x with sort list with group from input list, not a single list output shown as image.

I want list as like as below mention
list-0
x-127528.5
x-127878.8
x-128505.5
x-128933.3
x-129268.9
list-1
x-129286.4
x-129795.1
x-130109.4
x-130852.0
list-2
x-130869.5
x-131298.1
list-3
x-131315.6
x-132181.4

Try to remove the flatten node and put the sort by function @ level 2

I want a List-3 is First, List-2 is Second, List-1 is Third, List-0 is Forth those list are sort with point-X.
.

place List.Reverse after List.SortByFunction

It’s not working as what I required.
I show my requirement list as below indicate blue colour in image.

@level3?

null

can you show a bit more of the graph and the data structure?

This is my small graph.

so what is going wrong? The list is sorted bij point. and you wanted the sorted list 3 to be 0 etc. what do you want to achive?

I give you a sample list.

It’s three list of random number, then number sort by smaller to larger. (like: List.SortNatural).
then get list(List.SortNatural) first number of every sublist that sort by smaller to larger that output is my result.

How are you determining the sublist sorting? Is it just the lowest value, the average value, is it somehow weighted? You need a one-to-one relation of the things you’re sorting and how you’re sorting them.

mabye this is the way to go:

1 Like