SortIndexByValue has a bug?

hi, is something wrong with the node “SortIndexByValue”, or do i need to get some sleep;)?

The node works for the first 2 lists, but the last 2 are wrong.
The red numbers are the expected sequence.

The results seem correct to me…

Sleep :grinning:


All is well sorted: