Damn me @damn_me Now, maps are super new to me, so I am not familiar with any of the operations on map,. But I am able to get the logic now. If it’s trouble demonstrating the map operations in code like how you did for the original question could you please direct me to a resource which explains these operations well? Then, I’ll try sorting using this logic myself and attach the code. My gratitude is inexpressible. Thanks a lottt!