默认情况下可以对 DataObjects 进行排序
class SortDataObject extends DataObject {
private static $db = array(
'Name' => 'Varchar',
'SortOrder' => 'Int'
);
private static $default_sort = 'SortOrder DESC';
}
class SortDataObject extends DataObject {
private static $db = array(
'Name' => 'Varchar',
'SortOrder' => 'Int'
);
private static $default_sort = 'SortOrder DESC';
}