.sort(...) sorts alphabetically! (Even on numbers!) So to sort an array of numbers in JS, you've gotta do this.
I've been tirelessly working on my personal hobby blogging app and have been having fun with building my custom editor. Apparently I've been living under a rock all these years though; literally only learned about contenteditable this past week. So cool.
Many helpful articles abound on the interwebs, but I liked this one.
Hope everyone had a most wonderful week! The learning never stops! 😀🎆😄🚀
Thanks, Nick! Btw, one burning question I had about the Forem editor... on the main editor where people write articles, I noticed that you guys don't support keyboard shortcuts (eg. <ctrl+b> to bold and <ctrl+i> to italicize, etc). But here in the comment editor, shortcuts are supported! 🤨
Is this a deliberate design decision by the Forem devs to purposefully nerf the Forem editor to encourage people to write shorter articles? If so, I totally understand (makes sense to encourage bite-sized chunks of consumable content versus people writing Homeric odysseys). But if not, I'm actually really tempted to make a PR for keyboard shortcuts in the main article editor. 🚀
Thanks for clarifying! 🙏🙏🙏
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
For further actions, you may consider blocking this person and/or reporting abuse