The scheduler schedules by availability score, but it was running in the wrong order. I noticed this when I was scheduled to exactly the courses I requested as "preferred" despite having the highest availability score in the database. As such, I did some testing and determined the issue was in the implementation of Person.compareTo. This PR addresses the problem.
The scheduler schedules by availability score, but it was running in the wrong order. I noticed this when I was scheduled to exactly the courses I requested as "preferred" despite having the highest availability score in the database. As such, I did some testing and determined the issue was in the implementation of
Person.compareTo
. This PR addresses the problem.