const a = [{
"iso2": "KH",
"countryName": "Cambodia",
"nationality": "Cambodian"
},
{
"iso2": "KI",
"countryName": "Kiribati",
"nationality": "I-Kiribati"
},
{
"iso2": "KM",
"countryName": "Comoros",
"nationality": "Comoran, Comorian"
},
{
"iso2": "KN",
"countryName": "Saint Kitts and Nevis",
"nationality": "Kittitian or Nevisian"
}];
I have an array retrieved from a Get API list and I want to rearrange it so that the object with iso2 = KN is moved to the top of the list to match the select list options. I am aware of using push and unshift methods for this purpose, but I am wondering if there is a simpler way to achieve this reordering?