Structures_DataGrid::sortRecordSet

Structures_DataGrid::sortRecordSet() – Sorts the records by the defined field.

Synopsis

require_once 'Structures/DataGrid.php';

void Structures_DataGrid::sortRecordSet ( array $sortSpec , string $direction = 'ASC' )

Description

Do not use this method if data is coming from a database as sorting is much faster coming directly from the database itself.

Parameter

array $sortSpec

Sorting specification Structure: array(fieldName => direction, ...)

string $direction

Deprecated. Put the direction(s) into $sortSpec

Throws

throws no exceptions thrown

Note

This function can not be called statically.

Enable and configure URL mapping (Previous) Class Structures_DataGrid_Column (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.