Mam taki oto kod:
Arrays.sort(arr, new Comparator(){
public int compare(Object o1, Object o2) {
int a = (Integer)o1;
int b = (Integer)o2;
return dataSet.getAttributeValue(a, atribute).compareTo(dataSet.getAttributeValue(b, atribute));
}
});
arr to tablica int zawierająca numery wybranych indexów z dataSet Problem w tym że coś jest nie tak gdyż IDE cały czas pluje się no siutable metod found for sort.. Zresztą sami zobaczcie.
Bladego pojęcia nie mam skąd ten błąd.
opierałem się na tym artykule:
http://javafaq.nu/java-article724.html