Uploaded September 2024 | Updated November 2026, 3 hours ago
If you are sorting array elements alphabetically, don't settle for the default behavior of the sort and toSorted methods. Pass in a comparison function using localeCompare. Here's why.
π Support me on Patreon β patreon.com/davegray
π» Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
π Discord β discord.gg/neKghyefqh
π Follow Me On Social Media:
GitHub: github.com/gitdagray
X: twitter.com/yesdavidgray
LinkedIn: linkedin.com/in/davidagray
Blog: https://www.davegray.codes/
#javascript #localeCompare #sort
If you are sorting array elements alphabetically, don't settle for the default behavior of the sort and toSorted methods. Pass in a comparison function using localeCompare. Here's why.
π Support me on Patreon β patreon.com/davegray
π» Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
π Discord β discord.gg/neKghyefqh
π Follow Me On Social Media:
GitHub: github.com/gitdagray
X: twitter.com/yesdavidgray
LinkedIn: linkedin.com/in/davidagray
Blog: https://www.davegray.codes/
#javascript #localeCompare #sort







![My Login Authentication & User Registration Setup for React & Next.js | Kinde Auth
Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap
In this tutorial, Ill share my login authentication & user registration setup for React & Next.js projects. Im using Kinde Auth. Its a complete full-featured solution with passwordless, social and credential logins, single sign-on (SSO), multi-factor auth and much more.
**Set up a FREE Kinde Auth account here:** https://bit.ly/dg-kinde
π Support me on Patreon β https://patreon.com/davegray
β Become a full-stack web dev with Zero To Mastery Courses:
- Complete Next.js Developer: https://bit.ly/CompNextJSDev
- Advanced React: https://bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr
π© Subscribe β https://bit.ly/3nGHmNn
π¬ Course Updates β https://courses.davegray.codes/
β Questions - Please post them to my Discord β https://discord.gg/neKghyefqh
β Buy Me A Coffee β https://www.buymeacoffee.com/davegray
π Follow Me On Social Media:
GitHub: https://github.com/gitdagray
Twitter: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/
π Source Code: https://github.com/gitdagray/kinde-auth-nextjs
My Login Authentication & User Registration Setup for React & Next.js | Kinde Auth
(00:00) Intro
(00:05) Welcome
(00:30) Kinde Auth
(01:58) Next.js Project
(03:09) Set up your Kinde account
(04:52) Environment Variables
(05:44) Configure Auth Choices
(06:57) Middleware
(07:50) api / auth / [kindeAuth] / route.ts
(08:34) Components
(12:26) Try out our App with Kinde Auth!
π Tutorial References:
π Kinde Official Site: https://bit.ly/dg-kinde
π Kinde Auth Next.js Starter Kit: https://github.com/kinde-starter-kits/kinde-nextjs-app-router-starter-kit/
π Next.js Official Site: https://nextjs.org/
Was this tutorial about my user registration and login authentication set up with Kinde and the Next.js 13 App Directory helpful? If so, please share. Let me know your thoughts in the comments.
#nextjs #kinde #auth My Login Authentication & User Registration Setup for React & Next.js | Kinde Auth](https://i.ytimg.com/vi/WtHQGlKGUrU/mqdefault.jpg)


