Whatever message this page gives is out now! Go check it out!

ColdFusion.Grid.sort

Last update:
May 18, 2026

Description

Sorts the specified HTML grid.

Function syntax

ColdFusion.Grid.sort(name [, columnName, direction])

See also

cfgridColdFusion.Grid.getGridObjectColdFusion.Grid.refreshExtJS - JavaScript Library Documentation, Using HTML grids in the Developing ColdFusion Applications

History

ColdFusion 8: Added this function

Parameters

Parameter
Description
name
The value of the name attribute of the cfgrid tag to sort.
columnName
The name of the column that determines the sort order.
direction
The sort direction. Must be one for these values:
  • ASC (default)
  • DESC

Returns

This function does not return a value.

Usage

This function sorts the data displayed by the grid by using a case-insensitive sort for string data, or a numeric sort for numeric data. It uses the specified column contents to determine the displayed grid order. When a grid has a remote data source, the bound CFC function that provides the data gets the column name and sort direction in the cfgridsortcolumn and cfgridsortdirection bind attributes. The CFC function must use these values and perform the sort appropriately.

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page