List.SortByKey Sorting Is Reversed Or Not Consistent

Hello,

I am trying to get the List.SortByKey to sort from smallest to largest. Can someone explain why my list are flipping from largest to smallest? I have the same setup for other parameters and those are not consistent with other list.

We can’t really help if you don’t show us exactly what you’re dealing with. Please post a screenshot with all the node preview bubbles visible.

Thanks for the follow up. Im getting an error when trying to post media. Ill keep trying.

It says one media post for new users.

Those are strings, not numbers, so are being sorted alphabetically (1 comes before 9, a sorted list of numbers as strings would be 1, 11, 12, 112, 2, 22, 9, etc). You’ll either want to convert the string into a number (or be like me and create yourself a custom SortByKey node using natural sort).

3 Likes

I see you finally got an image posted but I went ahead an upgraded you to a normal member anyway, so this shouldn’t be an issue anymore.