Sorting from smaller to the biggest by value?
Instantly: If there is any other way besides the comparing EACH node with each other? I have a lot of things requiring this type of sorting, which is... sad, becuase I couldn't find anythign useful yet. Let's say I have this in my storage: [{"value":15,"id":0},{"value":5,"id":1},{"value":55,"id":2},{"value":25,"id":3}] And I want this to be that each time I run the "function": [{"value":5,"id":1},{"value":15,"id":0},{"value":25,"id":3},{"value":55,"id":2}]
(sorted by value, or whatever argument, I just need an example.)