JSFiddle - React, Tailwind, and code Playground

JavaScript

arr = [1,2,3];
arr.sort(item => {
	console.log(item);
})