Custom Sort on modules

Hi everybody!

Im trying to create a custom sort for the documents sub-panel and module, but without success,

some idea for do that?

i tryed this:

//check and set the default sort order
if (!isset($_REQUEST[‘sortOrder’]))
{
$_REQUEST[‘sortOrder’] = ‘DESC’;
}

but without success