Commit 04cb5487 authored by Marc Duez's avatar Marc Duez
Browse files

list.js : sort handle unknow system

parent 1bd413d6
......@@ -218,7 +218,6 @@ Clone.prototype = {
if (typeof (this.germline) != 'undefined') {
return this.germline;
}
return "";
},
......
......@@ -665,7 +665,9 @@ List.prototype = {
//sort by system
var systemA = cloneA.getSystem()
if (typeof systemA == "undefined") systemA = "";
var systemB = cloneB.getSystem()
if (typeof systemB == "undefined") systemB = "";
if (systemA != systemB) return systemA.localeCompare(systemB);
//sort by V
......@@ -699,7 +701,9 @@ List.prototype = {
//sort by system
var systemA = cloneA.getSystem()
if (typeof systemA == "undefined") systemA = "";
var systemB = cloneB.getSystem()
if (typeof systemB == "undefined") systemB = "";
if (systemA != systemB) return systemA.localeCompare(systemB);
//sort by J
......
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