It's a thing you can do via php.
If you created a module via module builder, open <sugar-root>/custom/modules/<your_module>/metadata/listviewdefs.php
you'll see the list of all fields, locate yours and add the line 'sortable' => true, (comma included) as in the following example:
PHP Code:
'MY_FIELD_NAME' =>
array (
'width' => '10',
'label' => 'LBL_MY_FIELD',
'sortable' => true,
'default' => true,
),
Since it's inside <sugar-root>/custom/modules/<your_module>/metadata/ you will not loose this mod when you update or change things via studio (unless you remove this field of course...)
Bookmarks