Commit 90f1b556 authored by BERTHAUT Florent's avatar BERTHAUT Florent
Browse files

Fixed sorting withing UE

parent bedd6f6a
......@@ -230,12 +230,12 @@ function parseGuides(fiches) {
sem.sort(function(a,b) {
if(a["UE"]<b["UE"]
|| (a["UE"]==b["UE"]
&& a["Nom EC"][0]<b["Nom EC"][0])) {
&& b["Nom EC"].localeCompare(a["Nom EC"], 'fr', {ignorePunctuation:true})>0)) {
return -1;
}
else if(a["UE"]>b["UE"]
|| (a["UE"]==b["UE"]
&& a["Nom EC"][0]>b["Nom EC"][0])) {
&& a["Nom EC"].localeCompare(b["Nom EC"], 'fr', {ignorePunctuation:true})>0)) {
return 1;
}
return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment