Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.prophecy.ai/llms.txt

Use this file to discover all available pages before exploring further.

This gem runs in .

Overview

Sorts a model on one or more columns in ascending or descending order.
The gem has a corresponding interactive gem example. See Interactive gem examples to learn how to run sample pipelines for this and other gems.

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