💾 Archived View for gemini.circumlunar.space › users › adiabatic › words › computing › ascending-vs-… captured on 2024-07-09 at 00:13:46. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-10)

-=-=-=-=-=-=-

Ascending vs. descending

I have quite a bit of trouble remembering what’s ascending and what’s descending. My notes:

Ascending:

Descending:

James Kerr has a way to remember. His mnemonic is “on a number line, negative numbers come first, so if l − r is negative, that means l comes first”.

James Kerr, “Finally Understanding How Array.sort(comparator) Works”

Home

Hi! I’m a one-pixel invisible tracking image! View me to let my webmaster know you’ve scrolled through the entire page!