function compare(key) {
    var f = function(a, b) {
      return parsed_json.genotypes[genomename][key].genotypes.indexOf(a) - parsed_json.genotypes[genomename][key].genotypes.indexOf(b);
    };
    return f;
  }
//sort the displayed genotypes according to their order in the genome definition
sort the displayed genotypes according to their order in the genome definition
sort the displayed genotypes according to their order in the genome definition
function compare(key) {
    var f = function(a, b) {
      return parsed_json.genotypes[genomename][key].genotypes.indexOf(a) - parsed_json.genotypes[genomename][key].genotypes.indexOf(b);
    };
    return f;
  }
function compare ( key ) { var f = function ( a , b ) { return parsed_json . genotypes [ genomename ] [ key ] . genotypes . indexOf ( a ) - parsed_json . genotypes [ genomename ] [ key ] . genotypes . indexOf ( b ) ; } ; return f ; }
sort the displayed genotypes according to their order in the genome definition
sort the displayed genotypes according to their order in the genome definition