JSFiddle - React, Tailwind, and code Playground

JavaScript

var values = [10, 2, 1];
console.log(values.sort());