Commit 38fc00f8 authored by BERTHAUT Florent's avatar BERTHAUT Florent
Browse files

Fixed ordering with numbers in UE

parent 89009de3
......@@ -309,6 +309,20 @@ function parseGuides(fiches) {
sem[sem.length-1]["UE"]=4;
}
}
//change UE number in Master RICI
if(guideName=="M1 LEA RICI" || guideName=="M2 LEA RICI") {
if(f["Semestre"]=="2") {
if(f["UE"]=="9" && (f["Nom UE"]+"").includes("Projet")) {
sem[sem.length-1]["UE"]="8.3";
}
}
else if(f["Semestre"]=="3") {
if(f["UE"]=="10") {
sem[sem.length-1]["UE"]="9.2";
}
}
}
}
}
......@@ -321,10 +335,11 @@ function parseGuides(fiches) {
sem.sort(function(a,b) {
return (a["UE"]+a["Nom UE"]+a["Nom EC"])
.localeCompare(b["UE"]+b["Nom UE"]+b["Nom EC"],
'fr', {ignorePunctuation:true});
'fr', {ignorePunctuation:true,
numeric:true});
});
if(guideName=="M1 LEA TCI Pro") {
if(guideName=="M2 LEA ANI") {
for(let ue of sem) {
console.log(ue["UE"]+" "+ue["Nom UE"]+" "
+ue["Nom EC"]+" "+ue["Parcours"]);
......
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