Commit 1bfb0667 authored by Mikaël Salson's avatar Mikaël Salson

compare.js: simplifying

See #3288
parent a1c04369
Pipeline #28705 passed with stages
in 6 minutes and 36 seconds
......@@ -45,9 +45,9 @@ function compare(string1, string2) {
var comparaison_1 = string1 > string2
var comparaison_2 = string1 < string2
if( !comparaison_1 && !comparaison_2){ return 0}
if( comparaison_1 && !comparaison_2){ return 1}
if( !comparaison_1 && comparaison_2){ return -1}
if( comparaison_1){ return 1}
if( comparaison_2){ return -1}
return 0;
}
/* Fonction permettant la comparaison entre 2 caractères ascii
......
Markdown is supported
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