Skip to content

Commit

Permalink
Gallery selection is ordered with newest first
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasFinnern committed Dec 12, 2016
1 parent c6a2ad9 commit 0ea3438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/models/fields/galleryselectlist.php
Expand Up @@ -41,7 +41,7 @@ protected function getOptions()
->select('id As value, name As text')
->from('#__rsgallery2_galleries AS a')
// ->order('a.name');
->order('a.ordering');
->order('a.ordering DESC'); // Newest first ToDO: Use opton in XML to select ASC/DESC

// Get the options.
$db->setQuery($query);
Expand Down

0 comments on commit 0ea3438

Please sign in to comment.