# What is the default order of ORDER BY in SQL?

By default, ORDER BY in SQL sorts the resulting rows in ascending ( ASC ) order. For text data, this means alphabetically, from A to Z. For numerical data, it goes from smallest (or most negative) numbers first, with the biggest number last.

Bron: [SQL ORDER BY | Sort Data In SQL Tutorial - DataLemur](https://datalemur.com/sql-tutorial/sql-order-by#:~:text=By%20default%2C%20ORDER%20BY%20in,with%20the%20biggest%20number%20last.)

Onderwerp: [Techniek & internet](https://1001vragen.nl/onderwerp/techniek-en-internet)
Toegevoegd: 2026-01-26
Webpagina: https://1001vragen.nl/vraag/what-is-the-default-order-of-order-by-in-sql

## What is the default sort order of the ORDER BY clause?

ASC | DESC ASC is the default sort order. NULL values are treated as the lowest possible values.

Bron: [SELECT - ORDER BY clause (Transact-SQL) - Microsoft Learn](https://learn.microsoft.com/en-us/sql/t-sql/queries/select-order-by-clause-transact-sql?view=sql-server-ver17#:~:text=ASC%20%7C%20DESC,-Specifies%20that%20the&text=ASC%20is%20the%20default%20sort,as%20the%20lowest%20possible%20values.)

## Is the default ORDER BY ASC or DESC?

You can use the ASC and DESC keywords to specify ascending (smallest value first) or descending (largest value first) order. The default order is ascending.

Bron: [ascending](https://www.ibm.com/docs/en/informix-servers/14.10.0?topic=clause-ascending-descending-orders#:~:text=You%20can%20use%20the%20ASC,The%20default%20order%20is%20ascending.)

## What's the default sort sequence for the ORDER BY clause?

The ORDER BY keyword sorts the records in ascending order by default. To sort the records in descending order, use the DESC keyword.

Bron: [SQL ORDER BY Keyword - W3Schools](https://www.w3schools.com/sql/sql_orderby.asp#:~:text=The%20ORDER%20BY%20keyword%20sorts,order%2C%20use%20the%20DESC%20keyword.)

## What is the default sorting order?

ASC order is the default. Ascending order puts smaller values first, where “smaller” is defined in terms of the < operator.

Bron: [Documentation: 18: 7.5. Sorting Rows (ORDER BY) - PostgreSQL](https://www.postgresql.org/docs/current/queries-order.html#:~:text=ASC%20order%20is%20the%20default,in%20terms%20of%20the%20%3C%20operator.)

## Verwante vragen

- [What is the default order of ASC and DESC?](https://1001vragen.nl/vraag/what-is-the-default-order-of-asc-and-desc.md)
- [Does SQL ORDER BY ASC or DESC by default?](https://1001vragen.nl/vraag/does-sql-order-by-asc-or-desc-by-default.md)
- [What is the default value of Group_concat_max_len?](https://1001vragen.nl/vraag/what-is-the-default-value-of-group-concat-max-len.md)
- [What is the correct order of SQL?](https://1001vragen.nl/vraag/what-is-the-correct-order-of-sql.md)
- [What is the correct order of execution of an SQL SELECT statement?](https://1001vragen.nl/vraag/what-is-the-correct-order-of-execution-of-an-sql-select-statement.md)
- [What does ORDER BY 1 2 3 mean in SQL?](https://1001vragen.nl/vraag/what-does-order-by-1-2-3-mean-in-sql.md)
- [How to find the latest order date in SQL?](https://1001vragen.nl/vraag/how-to-find-the-latest-order-date-in-sql.md)
- [What is meant by ORDER BY 2?](https://1001vragen.nl/vraag/what-is-meant-by-order-by-2.md)
- [What is ORDER BY 1, 2, 3 in SQL?](https://1001vragen.nl/vraag/what-is-order-by-1-2-3-in-sql.md)
- [What does ORDER BY 0 mean?](https://1001vragen.nl/vraag/what-does-order-by-0-mean.md)
