Help Center/ SecMaster/ User Guide/ Log Audit/ Query and Analysis Syntax/ Analysis Statements/ ORDER BY
Updated on 2025-09-24 GMT+08:00
ORDER BY
The syntax of a complete analysis statement is as follows:
1 2 3 4 | SELECT [DISTINCT] (* | expression) [AS alias] [, ...] [GROUP BY expression [, ...] [HAVING predicates]] [ORDER BY expression [ASC | DESC] [, ...]] [LIMIT size OFFSET offset] |
Where, ORDER BY indicates sorting by field value. The following part describes parameters and examples for the ORDER BY syntax.
Sorting Data by Field Value
1 | SELECT age ORDER BY age DESC |
| age |
|---|
| 28 |
| 32 |
| 32 |
| 36 |
Parent topic: Analysis Statements
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.