Now, after Noel Gorelick's very helpfull code, i have a sorted list with two-segment:
var list = ee.List([ [101, 103], [102, 103], [103, 109], [109, 122], [117, 156], [122, 133], [133, 100], [199, 155] ])
i want to make a new list with linked-lists, for example i want to find an element from first column, take second column value and add the value to list, until the second value is equal to 100.
The result list have to a list with one column and values in this list must be:
var newlist = ee.List([101,102,103,109,122,133])
Any suggestion please?