MCPcopy
hub / github.com/bradtraversy/vanillawebprojects / sortByRichest

Function sortByRichest

dom-array-methods/script.js:39–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38// Sort users by richest
39function sortByRichest() {
40 console.log(123);
41 data.sort((a, b) => b.money - a.money);
42
43 updateDOM();
44}
45
46// Filter only millionaires
47function showMillionaires() {

Callers

nothing calls this directly

Calls 1

updateDOMFunction · 0.85

Tested by

no test coverage detected