Sort a list of elements by id

Hi everyone,

I would like to set the temperature parameter to my elements (temperature sensors).
The problem is that the temperature data are ordered in a certain way (in green), the elements (temperature sensors) are instead in another order.
I would like to sort the list of elements as in the green list because all the data is sorted that way.
Or, if possible, to obtain the elements from the List.Sort.

Thank you all


Courtesy of @Nick_Boyts


Thanks for the reply @EzDoesIt