Fixed Matrix alpha numeric sort direction, changed default sort to alpa numeric

This commit is contained in:
Yung Han Khoe 2009-03-28 15:26:09 +00:00
parent 9e1b9d2f49
commit 15b29252ed
2 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,6 @@
7.7.2
- fixed #9955: Matrix alpha sort is backwards
- fixed #9934: Matrix 2.0 - Products should be listed alphabetically
7.7.1
- the AdSku project: create a Sku that allows buyers to purchase advertising in select AdSpaces at selected priorities

View file

@ -155,7 +155,7 @@ sub definition {
lineage => $i18n->get('sort by asset rank label'),
lastUpdated => $i18n->get('sort by last updated label'),
},
defaultValue =>"score",
defaultValue =>"title",
hoverHelp =>$i18n->get('default sort description'),
label =>$i18n->get('default sort label'),
},
@ -1010,6 +1010,9 @@ sub www_getCompareFormData {
my $form = $session->form;
my $sort = shift || $session->scratch->get('matrixSort') || $self->get('defaultSort');
my $sortDirection = ' desc';
if ($sort eq 'title'){
$sortDirection = ' asc';
}
my @listingIds = $session->form->checkList("listingId");