Sort list by key

Hi, All

I can not find out how sort list using by key.

“manually list create”(see iamge) group of node as shown which two element i want in upper node diagram.

i try this node list.sortbykey, problem is key 4 = 297808 value get, correct value is key 4 = 297882. same as key 7 shown in image “should be” in node.

so please give me any solution for this problem.

Hope it will help you.

https://www.youtube.com/watch?v=yMqFjPcgmaI