Fix Random MongoDB Sorting in 5 Minutes (What Took Me 6 Hours to Debug)
Production bug - Same query, random results every time. Learn the counter-intuitive double-sort fix that saved our team 18 support tickets in 24 hours
March 16th, 2026
Featured
A sample post showing both full-post and partial paywall in action. Set premium: false in frontmatter to make it free.
Production bug - Same query, random results every time. Learn the counter-intuitive double-sort fix that saved our team 18 support tickets in 24 hours
March 16th, 2026
Web Development
Learn the fundamentals of Next.js 15, including App Router, Server Components, and the latest features
December 10th, 2025
For You
Featured
·meta
A sample post showing both full-post and partial paywall in action. Set premium: false in frontmatter to make it free.
Production bug - Same query, random results every time. Learn the counter-intuitive double-sort fix that saved our team 18 support tickets in 24 hours
·Web Development
Learn the fundamentals of Next.js 15, including App Router, Server Components, and the latest features
·Web Development
Exploring advanced React Hooks: useContext for state management and useReducer for complex state
·Programming
Discover advanced TypeScript patterns and techniques to write more robust and maintainable code
·Web Development
Understanding the fundamentals of React Hooks, starting with useState and useEffect
Latest essays
View all posts
meta
A sample post showing both full-post and partial paywall in action. Set premium: false in frontmatter to make it free.
April 25th, 2026Nguyễn Công Dũng
Production bug - Same query, random results every time. Learn the counter-intuitive double-sort fix that saved our team 18 support tickets in 24 hours
March 16th, 2026dunggramer
Web Development
Learn the fundamentals of Next.js 15, including App Router, Server Components, and the latest features
December 10th, 2025dunggramer
Web Development
Exploring advanced React Hooks: useContext for state management and useReducer for complex state
December 9th, 2025dunggramer
Programming
Discover advanced TypeScript patterns and techniques to write more robust and maintainable code
December 8th, 2025dunggramer
Web Development
Understanding the fundamentals of React Hooks, starting with useState and useEffect
December 7th, 2025dunggramer
Explore by category
Timeless
Programming
Discover advanced TypeScript patterns and techniques to write more robust and maintainable code
December 8th, 2025dunggramer
Web Development
Learn the fundamentals of Next.js 15, including App Router, Server Components, and the latest features
December 10th, 2025dunggramer
Web Development
Exploring advanced React Hooks: useContext for state management and useReducer for complex state
December 9th, 2025dunggramer
Web Development
Understanding the fundamentals of React Hooks, starting with useState and useEffect
December 7th, 2025dunggramer
Web Development
Learn how to write maintainable and efficient Tailwind CSS code with these best practices
December 5th, 2025dunggramer
This is an example blog post to demonstrate the MDX blog setup
January 15th, 2024dunggramer
Newsletter
New essays delivered when published. No spam.
About
A personal blog by DungGamer — a software engineer writing about the craft of building for the web. Topics include React, Next.js, TypeScript, system design, and anything worth thinking through in long form.
More about me