track 0

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!'”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.