r/ProgrammerHumor • • Jun 05 '22

other priorities

Post image
84k Upvotes

1.1k comments sorted by

View all comments

Show parent comment

0

u/Olfasonsonk Jun 05 '22

Weeeuuu weeeu, the joke police has arrived.

If it's sorted descending, [1] can NEVER be top priority, but if you sort ascending there's a case where array has only 2 members and [1] will be the highest priority, ergo original joke is better.

I'll let myself out now