Skip to main content

OrderBy

SQL

Sorts a model on one or more columns in ascending or descending order.

Parameters

ParameterDescriptionRequired
Order columnsColumns to sort the model byTrue
SortOrder of sorting (ascending or descending)True

Example

Assume you have the following weather prediction table.

DatePredictionTemperatureCelsiusHumidityPercentWindSpeedCondition
2025-03-01156510Sunny
2025-03-02177012Cloudy
2025-03-03166811Rainy
2025-03-0414729Sunny

Result

The follow table results when you order by the HumidityPercent column in ascending order.

DatePredictionTemperatureCelsiusHumidityPercentWindSpeedCondition
2025-03-01156510Sunny
2025-03-03166811Rainy
2025-03-02177012Cloudy
2025-03-0414729Sunny