changed the query slightly for the product dropdowns, to make the latest at the top

This commit is contained in:
wclouser%mozilla.com 2006-11-09 21:41:44 +00:00
Родитель b35e22d333
Коммит e958636752
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -152,7 +152,7 @@ class ResultsController extends AppController {
function index()
{
// Products dropdown
$this->set('products', $this->Application->findAll('visible=1', null, 'Application.id ASC'));
$this->set('products', $this->Application->findAll('visible=1', null, 'Application.name ASC,Application.version DESC'));
// Fill in all the data passed in $_GET
$this->set('url_params',$this->decodeAndSanitize($this->params['url']));
@ -176,7 +176,7 @@ class ResultsController extends AppController {
function comments()
{
// Products dropdown
$this->set('products', $this->Application->findAll('visible=1', null, 'Application.id ASC'));
$this->set('products', $this->Application->findAll('visible=1', null, 'Application.name ASC,Application.version DESC'));
// Fill in all the data passed in $_GET
$this->set('url_params',$this->decodeAndSanitize($this->params['url']));