const input = ['20', '120', '111', '215', '54', '78']; const secondSort = input.sort(function (a, b) { return b - a}[1]) console.log("===> :: secondSort", secondSort);