|
Sorting Objects (just for my understanding)
Hello,
I have an Object, containing an object, containing an object....etc.
So, it's an Object of objects. Not an Array of objects.
And now I want to sort this Object of objects.
Is there a "native" way in JavaScript to sort an object?
Or do I understand it correctly, that I first have to convert the Object to an Array, and than perform an array.sort ?
This question is just for my understanding of JavaScript, so I don't go into the wrong direction.
Tnx in advance for any explanation.
|