JSFiddle - React, Tailwind, and code Playground JavaScript var arr = [3,2,1]; console.log(arr); // [1,2,3] arr.sort(); console.log(arr); // [1,2,3]