diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index c26e08535..aae5bc87f 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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 diff --git a/lib/WebGUI/Asset/Wobject/Matrix.pm b/lib/WebGUI/Asset/Wobject/Matrix.pm index 1ccbad559..2fdc4769c 100644 --- a/lib/WebGUI/Asset/Wobject/Matrix.pm +++ b/lib/WebGUI/Asset/Wobject/Matrix.pm @@ -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");