JSFiddle - React, Tailwind, and code Playground

by Ishank Dubey

JavaScript

console.log([2,12,4,0].sort((a,b)=>{
return a-b; 
}));