arr.sort((a, b) => (a.nameofKeyFromArray < b.nameofKeyFromArray ? -1 : Number(a.nameofKeyFromArray > b.nameofKeyFromArray)));