Getting a sorted list

Hello,

in a configurate column, i'm trying to create a list of PTCar used in a train sorted by the start data but i can't do it... 

I tried to use the "selectsortedset" function but like i must use a VALUE expression, it doens't work and i can't find a solution to solve the error 😢  In fact, i don't understand how to use it....

If i don't want to sort it, i'll make a list using "sum" 

ex: VALUE(sum( object, StandardTrainActivity.astype( StandardTrainLeg ), stl, stl.FromLocation().PTCAR().Code().Concat( ";")))

 

but like i want t sort it by the start data, it seems that the only way to do it is to use the selectsortedset but i don't understand how to use it and the documentation is to light to help me..

I thought, it was like the "minselect" function but no, i can't add the data at the end. 

Ex: VALUE(minselect(  object, StandardTrainActivity.astype(StandardTrainLeg ), stl, true , stl.Start()).FromLocation().PTCAR().Code()))

But i can't do the same with selcetsortedset because i can't add the data after the selection/sort formula... I tryed something else that don't work either...

I tried this : 

i'm sure my formula is wrong but i don't know what to do....  I don't understand where i must put the data i want to list and how to convert this structured...

 

If someone has the knowledge and can help me?

thanks