Sort object in ascending order based on string value example