how can I declare the sort and sort direction on the ModelAdmin results?
here is my code for the DataObject.
<?php
class Contact extends DataObject {
static $db = array(
'ContactNameFirst' => 'Varchar(100)',
'ContactNameLast' => 'Varchar(100)',
'ContactPhoneHome' => 'Varchar(100)',
'ContactPhoneCell' => 'Varchar(100)',
'ContactEmail' => 'Varchar(200)',
'ContactComment' => 'Text',
'Referrer' => 'Varchar(200)'
);
static $searchable_fields = array(
'ContactNameFirst',
'ContactNameLast'
);
static $summary_fields = array(
'ContactNameFirst',
'ContactNameLast'
);
}
?>