diff --git a/models/OrderSearch.php b/models/OrderSearch.php index 5fd8740..f0b05a0 100755 --- a/models/OrderSearch.php +++ b/models/OrderSearch.php @@ -65,7 +65,7 @@ 'count(*)', ] ) - ->groupBy('order.id'); + ->groupBy('order.id')->orderBy('created_at DESC'); // add conditions that should always apply here -- libgit2 0.21.4