Reverse sort.

This commit is contained in:
James Cole 2015-12-11 18:05:07 +01:00
parent 18eba02026
commit 4a2823bcba

View File

@ -55,7 +55,7 @@ class Category
*/
public function getCategories()
{
$set = $this->categories->sortByDesc(
$set = $this->categories->sortBy(
function (CategoryModel $category) {
return $category->spent;
}