4 ms·
Yes, .sort((a, b) => b - a) is what I meant in this case. I think perhaps this "makes the most sense" from a language designer/implementor's perspective, but i
by gmac 5y ago
Yes, .sort((a, b) => b - a) is what I meant in this case.
I think perhaps this "makes the most sense" from a language designer/implementor's perspective, but it also gives ample opportunity for WTF moments in actual use.