---
title: "Sort By Column"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/data/sortbycolumn
markdown: https://docs.nodetool.ai/nodes/nodetool/data/sortbycolumn.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/data/sortbycolumn.md
---

# Sort By Column

**Type:** `nodetool.data.SortByColumn`

**Namespace:** `nodetool.data`

## Description

Sort dataframe by specified column.
    sort, order, column

    Use cases:
    - Arrange data in ascending or descending order
    - Identify top or bottom values in dataset
    - Prepare data for rank-based analysis

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| df | `dataframe` |  | `{"type":"dataframe","uri":"","asset_id":null,"d...` |
| column | `str` | The column to sort the DataFrame by. | `` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `dataframe` |  |

## Related Nodes

Browse other nodes in the [nodetool.data](./) namespace.
