I have a Map of object values. I want to sort them for a property of its object values.
Here is the sample Map:
var map = new Map();
map.set("8014",{
            "Access to support": null,
            "Capacity":  1,
            "Comfort Level": null,
            "Control Level": 1,
            "Growth Mindset": 1.5405405405405403,
            "Horizon": null,
            "Motivation": null,
            "Open-Mindedness": null,
            "Proactivity": null,
            "Resiliency": null,
            "Segment": "Level value 1"});
map.set("8015",{
            "Access to support": null,
            "Capacity":  1,
            "Comfort Level": null,
            "Control Level": 1,
            "Growth Mindset": 1.5405405405405403,
            "Horizon": null,
            "Motivation": null,
            "Open-Mindedness": null,
            "Proactivity": null,
            "Resiliency": null,
            "Segment": "Level value 2 or 5"});
map.set("8016",{
            "Access to support": null,
            "Capacity":  1,
            "Comfort Level": null,
            "Control Level": 1,
            "Growth Mindset": 1.5405405405405403,
            "Horizon": null,
            "Motivation": null,
            "Open-Mindedness": null,
            "Proactivity": null,
            "Resiliency": null,
            "Segment": "Level value 3 or 5"});
I want to sort it for Segment property of value object. Any help will be appreciated!