I have a very specific requirement. There is a three or four liner solution for the same. I need one liner solution.
Let's say i have an array like:
[["Andorra", "Andorra"], ["United Arab Emirates", "United Arab Emirates"],
["Afghanistan", "Afghanistan"], ["Antigua & Barbuda", "Antigua & Barbuda"],
["Anguilla", "Anguilla"], ["Albania", "Albania"], ["Armenia", "Armenia"],
["Angola", "Angola"]]
I want ["Anguilla", "Anguilla"] as my first element and else other in descending order.
Is there any way to achieve this ? (One liner if possible)