Timeline for Bash sort array according to length of elements?
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 19, 2018 at 0:07 | comment | added | anna328p | In Ruby: array.sort { |a| a.size } | |
| Nov 18, 2018 at 16:47 | comment | added | wjandrea | In Python: sorted(array, key=lambda s: (len(s), s)) | |
| Nov 17, 2018 at 20:49 | vote | accept | Enterprise | ||
| Nov 17, 2018 at 20:29 | history | edited | choroba | CC BY-SA 4.0 | added 169 characters in body |
| Nov 17, 2018 at 20:21 | history | answered | choroba | CC BY-SA 4.0 |