// ############################## START FUNC ############################################ // This function sorts the neighbour for each atom with heavy neighbours and neigbours // with many connections first. // Integers: n,q // Strings: temp // Floating numbers: thjalp // String matrix: temp_int_array // Integer matrix: atom_sorts, atom_connections function sort_connections(atom_connections, atom_sorts) { var number_of_atoms = atom_sorts.length; var n=0; var q=0; var temp=""; var temp_int_array=new Array(0); // ************ START LOOP (n) BELOW ********************* for(n=0;n