VYvibha yadavinvibha07.hashnode.dev路Mar 26 路 3 min readSorting in JavaScript (Why It Confuses Everyone at First 馃槄)If you鈥檙e learning JavaScript, there鈥檚 a high chance you鈥檝e tried this: [10, 2, 5].sort(); And expected: [2, 5, 10] But instead, you got: [10, 2, 5] At this point, most people think: 鈥淚s JavaScript20