Per i numeri è questo...
public static int[] ordina(int[] input){
int temp;
for (int i=0; i<input.length; i++){
for (int j=0; j<input.length; j++){
if(input[i]<input[j]){
temp = input[j];
input[j] = input[i];
input[i] = temp;
}
}
}
return input;
}