JSFiddle - React, Tailwind, and code Playground

by Felipe Alfaro

JavaScript

var data = [
	['a', 140, 88],
	['b', 304, 81],
	['c', 219, 99],
	['d', 384, 64]
];

data.sort(function (a, b) {
	return (a[1] > b[1]);
});

console.log(data);