JSFiddle - React, Tailwind, and code Playground JavaScript console.log([{ a:1}, {a:0}].sort(function(a,b) { return a.a-b.a; }));