Closed anderoy closed 8 years ago
Somewhere in the code at lines 1793 and 1852 it looks like there is the sort options for the early programs.
total_points
needs to be a secondary sort applied after an overall_rating
of Gold, Silver, Bronze. The way the ratings work, it is possible for a program to not receive a medal in overall_rating
and yet have a greater total_points
value than a program that received a "Bronze" medal in overall_rating
.
Just want to make sure that it is working that way.
I've made the two changes in the first comment, but haven't pushed them to dev or prod servers yet.
For the second comment, can you describe the way you'd like the results to be sorted with an example?
The changes look good. I'll close this for now as I expect it to work properly once we start testing. On my second comment, I will hold off on that to see how it is actually sorting during the testing.
Referencing the code here: https://github.com/ESDet/esdportal_api/blob/7.x-1.x/esdportal_api.module
In a quick review of the API, those are what I came up with