npm i rich-sort --save
"scripts": [
"node_modules/rich-sort/rich-sort.js"
]
const arr = [3, 5, 2, 1, 33, 16, 11, 7, 8, 12, 20];
(arr as any).richSort();
const arr = [3, 5, 2, 1, 33, 16, 11, 7, 8, 12, 20];
(arr as any).richSort((a, b) => {
return b - a;
});