I am trying to sort the keys of an JSON Object in TypeScript which are keys with versions in SemVer format.
Object example:
{
"changelog": {
"1.0.0": "Changes...",
"1.0.1": "More changes..."
}
}
Is there a efficient and low amount of code approach for this?
(Note: This didn't really help me, as I'm looking to do SemVer-only sorting.