fixed sorting thingy
This commit is contained in:
parent
7aa445f694
commit
fa1c947a23
1 changed files with 2 additions and 3 deletions
|
|
@ -19,7 +19,6 @@ import java.awt.event.ActionListener;
|
|||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Properties;
|
||||
|
||||
import javax.swing.JLabel;
|
||||
|
|
@ -276,7 +275,7 @@ public class LWJGLPropertiesDialog implements ActionListener{
|
|||
for(int i=0; i<list.size() ;i++){
|
||||
res[i] = list.get(i);
|
||||
}
|
||||
Arrays.sort(res);
|
||||
sortString(res);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
@ -322,7 +321,7 @@ public class LWJGLPropertiesDialog implements ActionListener{
|
|||
private void sortString(String[] list){
|
||||
for(int i=0; i<list.length ;i++){
|
||||
for(int j=i; j<list.length ;j++){
|
||||
if(Integer.parseInt(list[i]) > Integer.parseInt(list[j])){
|
||||
if(Integer.parseInt(list[i].replace("x", "")) > Integer.parseInt(list[j].replace("x", ""))){
|
||||
String temp = list[i];
|
||||
list[i] = list[j];
|
||||
list[j] = temp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue