From cece6155cdfd6b089761bd24eda801369fbfcec6 Mon Sep 17 00:00:00 2001 From: Gowtham Sai <66207607+gowtham3105@users.noreply.github.com> Date: Tue, 6 Dec 2022 16:22:27 +0530 Subject: [PATCH] Sorting students by roll No by default (#150) --- CDC_Backend/APIs/adminViews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CDC_Backend/APIs/adminViews.py b/CDC_Backend/APIs/adminViews.py index 9b07f80..e935e8d 100644 --- a/CDC_Backend/APIs/adminViews.py +++ b/CDC_Backend/APIs/adminViews.py @@ -511,7 +511,7 @@ def getStats(request, id, email, user_type): - students = Student.objects.all() + students = Student.objects.all().order_by("roll_no") for student in students.iterator(): applications = PlacementApplication.objects.filter(student=student, selected=True)