Initializing help system before first use

Column sort order and direction

You can define the sort order and sort direction of Datagrid columns.

The index columns of a datagrid are sorted in ascending order by default.

Column sorting is enabled using the render attribute in <vdl-table-column> or <vdl-datagrid-column>. You can modify the sort order of data within any column by setting the column attribute sort-by-formatted="true" and providing a custom render expression or function that handles type === 'sort'.

Sort order

The order in which the columns of a datagrid are sorted can be adjusted using the sort-order attribute. The sort-order attribute must be a number, and columns are sorted in ascending order, starting with zero.

Sort direction

Use the sort-direction attribute to define either an ascending or descending sort direction. Valid sort direction values are: asc, and desc.

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.