---
title: "Discussion on \"What is the sorting algorithm behind ORDER BY query in MySQL?\" | Hashnode"
description: "Discussion on \"What is the sorting algorithm behind ORDER BY query in MySQL?\". Let's understand how MySQL executes ORDER BY internally!"
url: "https://hashnode.com/posts/what-is-the-sorting-algorithm-behind-order-by-query-in-mysql/60f6ea20410a0224b5d4f010"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What is the sorting algorithm behind ORDER BY query in MySQL?](https://pankajtanwar.hashnode.dev/what-is-the-sorting-algorithm-behind-order-by-query-in-mysql?utm_source=hashnode&utm_medium=feed)

Let's understand how MySQL executes ORDER BY internally!

Jul 20, 2021 · 4 min read · pankajtanwar.hashnode.dev  
Updated Aug 25, 2021  
Read the article

-   [#mysql](https://hashnode.com/tag/mysql)
-   [#databases](https://hashnode.com/tag/databases)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Pankaj Tanwar](https://hashnode.com/@pankajtanwar)

@pankajtanwar · Rajasthan.

  
[View profile](https://hashnode.com/@pankajtanwar)

I write about System Design & Web Tech. Curious about how things work!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
