Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmi01345 committed Oct 27, 2024
1 parent b8b7b8c commit e209dee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/appComponents/AdminResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ export default function AdminResults() {
sortedResults.sort((a, b) => b.score - a.score);
break;
case "Year":
sortedResults.sort((a, b) => a.user.year.localeCompare(b.user.year));
break;
sortedResults.sort((a, b) => parseInt(a.user.year, 10) - parseInt(b.user.year, 10)); break;
case "Rollno":
sortedResults.sort((a, b) => parseInt(a.user.rollNo, 10) - parseInt(b.user.rollNo, 10));
break;
Expand Down

0 comments on commit e209dee

Please sign in to comment.