public String[] selectionSortDouble(String[] data){
try{
int lenD = data.length;
int jj = 0;
String tmp = "";
for(int i=0;i<lenD;i++){
jj = i;
for(int k = i;k<lenD;k++){
if(Double.parseDouble(data[jj].split("\\|")[0])>Double.parseDouble(data[k].split("\\|")[0])){
jj = k;
}
}
tmp = data[i];
data[i] = data[jj];
data[jj] = tmp;
}
}catch(Exception e){
e.printStackTrace();
}
return data;
}
try{
int lenD = data.length;
int jj = 0;
String tmp = "";
for(int i=0;i<lenD;i++){
jj = i;
for(int k = i;k<lenD;k++){
if(Double.parseDouble(data[jj].split("\\|")[0])>Double.parseDouble(data[k].split("\\|")[0])){
jj = k;
}
}
tmp = data[i];
data[i] = data[jj];
data[jj] = tmp;
}
}catch(Exception e){
e.printStackTrace();
}
return data;
}