If you look in your cache folder, you'll find a Leadvardefs.php inside cache/modules/Leads/; in there you'll see this:
PHP Code:
'name' =>
array (
'name' => 'name',
'rname' => 'name',
'vname' => 'LBL_FULL_NAME',
'type' => 'name',
'fields' =>
array (
0 => 'first_name',
1 => 'last_name',
),
'sort_on' => 'last_name',
'source' => 'non-db',
'group' => 'last_name',
'len' => '255',
'db_concat_fields' =>
array (
0 => 'first_name',
1 => 'last_name',
),
Inverting the last two lines makes that field sortable by last name:
PHP Code:
0 => 'last_name',
1 => 'first_name',
CON: this file is inside the cache folder so it is overwritten at any code change.
Bookmarks