JSFiddle - React, Tailwind, and code Playground by Frank Liu July 03, 2019 JavaScript let x = [10, 3, 2,1]; console.log(x.sort( (a,b)=>a-b ));