Rupert 'fildon' McKay
Rupert 'fildon' McKay's Blog

Rupert 'fildon' McKay's Blog

Rupert 'fildon' McKay

37 followers

Senior Software Engineer at Adidas. I love TypeScript/React/Jest and love to teach others about them. Check out more of my stuff over here:

https://fildon.me/

Blog Author Picture

Sorting in JavaScript

Jan 17, 20228 min read 928 views

JavaScript arrays have a builtin sort method, which mostly does what you expect: [1, 4, 2, 3].sort(); // [1, 2, 3, 4] ["d", "a", "b", "c"].sort(); // ['a', 'b', 'c', 'd'] But it has some quirks. For examples numbers are sorting as though they were s...

Sorting in JavaScript
What is a number?
React Testing Library Recipes
ESLint vs Prettier
TypeScript 4.4 > useUnknownInCatchVariables
Publishing TypeScript React components to NPM