JSFiddle - React, Tailwind, and code Playground

by nevkatz

JavaScript

let arr = [1,5,2,3,1,7];

let s = arr.sort((a,b) => a < b);

console.log(s);