Structures_DataGrid::sortRecordSet

Structures_DataGrid::sortRecordSet() – 定義したフィールドで、レコードを並べ替える

Synopsis

require_once 'Structures/DataGrid.php';

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

Description

データベースからデータを取得する場合は、このメソッドを使用しないでください。 その場合は、データベース側で並べ替えさせるほうがずっと高速です。

Parameter

array $sortSpec

array(fieldName => direction, ...) 形式の並べ替え設定。

string $direction

非推奨です。並べ替えの方向は $sortSpec で指定します。

Throws

例外はスローされません。

Note

This function can not be called statically.