Skip to content
Snippets Groups Projects
Commit 12c3ca51 authored by Alexis Poyen's avatar Alexis Poyen
Browse files

Feat : sort candidates by rank in table

parent 89165c20
No related branches found
No related tags found
1 merge request!38Resolve "Rank number"
Pipeline #5922 passed
......@@ -186,6 +186,9 @@ class CandidateList {
</div> `;
let candidates = await this.updateCandidates();
candidates.sort(function (a, b) {
return a.Rank > b.Rank;
});
const markup = candidates
.map((candidate) => this.candidateTemplate(candidate))
.join("");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment