JSFiddle - React, Tailwind, and code Playground
by alexbfree
JavaScript
let data = {
"TripAdvisor <[email protected]>": 5,
"Costa Coffee <[email protected]>": 2,
'NatWest MyRewards <[email protected]>': 15,
'ODEON Cinemas <[email protected]>': 1,
'Costa Coffee <[email protected]>': 1,
'ArtStation <[email protected]>': 2,
'North East Liberal Democrats <[email protected]>': 1,
'British Airways Executive Club <[email protected]>': 1,
'"Laura, Direct Ferries" <[email protected]>': 2,
'Daniel Turner <[email protected]>': 1,
'Groupon Rewards <[email protected]>': 4,
'<[email protected]>': 1,
'Google Maps Timeline <[email protected]>': 1,
'Groupon Newcastle <[email protected]>': 3,
'iFly KLM Magazine United Kingdom <[email protected]>': 5,
'David Williams <[email protected]>': 1,
'The Sunday Times <[email protected]>': 2,
'"Angelika Strohmayer (PGR)" <[email protected]>': 1,
'Jon Bowyer <[email protected]>': 1,
'Jamie Williams <[email protected]>': 1,
'"Unroll.Me" <[email protected]>': 12,
'The Times <[email protected]>': 4,
'ODEON Cinemas <[email protected]>': 2,
'Meetup <[email protected]>': 11,
'FT Due Diligence <[email protected]>': 2,
'"Thomas Maskell (PGR)" <[email protected]>': 1
};
let sortable = [];
for (let key of Object.keys(data)) {
sortable.push([key, data[key]]);
};
//console.dir(sortable);
console.dir(Object.keys(data));