My array includes user points as follows:
let groupRank = [];
userA = ["Sara", "24"];
userB = ["John", "12"];
userC = ["Eddi", "20"];
userD = ["Marry", "13"];
I am looking to rank them according to their points and achieve the following result:
Console.log(groupRank);
//Sara, Eddi, Marry, John