track 0: “Hello, I fixed this problem by editing ListingsManager.php in the mod/phpwslistings/class directory.
locate the line
$result = $GLOBALS[‘core’]->sqlSelect(‘mod_listings’,$match_columns);
and replace it with
$result = $GLOBALS[‘core’]->sqlSelect(‘mod_listings’,$match_columns,NULL,’sort_field_name sort_order’);
where sort_field_name is the field you want to sort by and sort_order = ASC or DESC.
My example sorts descending by creation date, as follows.
$result = $GLOBALS[‘core’]->sqlSelect(‘mod_listings’,$match_columns,NULL,’creationdate DESC’);
works for me!'”