Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

Commit

Permalink
Update TwigExtensionSorts.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Jul 3, 2016
1 parent 7f91ef1 commit 633200a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Renderer/TwigExtensionSorts.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function sortByTitle($array)
return 0;
}

return ($a['title'] < $b['title']) ? -1 : 1;
return ($a['title'] > $b['title']) ? -1 : 1;
};

if ($array instanceof \PHPoole\Collection\AbstractCollection) {
Expand Down

0 comments on commit 633200a

Please sign in to comment.