Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadmurad committed Aug 1, 2022
1 parent e16293c commit 503c084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Subject.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function getLeaderBoard($start,$end){
// ->join('levels', 'reward_points.student_id', '=', 'enrolls.student_id')
->select( DB::raw('SUM(points.count) as points'), 'reward_points.student_id')
->groupBy('reward_points.student_id')
->orderBy('points')
->orderBy('points','desc')
->get();
}

Expand Down

0 comments on commit 503c084

Please sign in to comment.