sorted(words, key=len, reverse=True)
-
-
-
reversed(sorted(words, key=len))
- Show replies
New conversation -
-
-
without any other constraints... words.sort((a,b)=>b.length-a.length)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This Tweet is unavailable.
-
My guess is he's settling a bet on how many people will forget to reverse it
- Show replies
-
-
-
["a", "bcd", "ef", "ghij"].sort((a,b)=>b.length-a.length)
-
Not stable if array contains different strings of same length.
- Show replies
New conversation -
-
-
arr.sort((a, b)=> b.length - a.length);
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
words.sort_by(&:length).reverse
- End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
