Hi I am trying to create a method that finds the mode of an array. To do this I first need to create a method that sorts the list from least to greatest but I am not sure what I am doing wrong in the first place

```
public class Mode {
    public int [] sort(int[] asd) {
        int[] sorted = new int[10];
        for (int i = 0; i < asd.length; i++) {
            for (int j = 1; j < asd.length; j++) {
                if ( (asd[i] > asd[j]) && (i != j) ) {
                    int temp = asd[j];
                    asd[j] = asd[i];
                    asd[i] = asd[temp];
                }
                else
                    continue;
            }
        }
        return sorted;
    }

    public static void main(String[] args) {
        Mode list1 = new Mode();
        int[] array = {3,2,5,4,1,1,1,1,10,9};
        int[] potato = list1.sort(array);
        for (int i = 0; i < potato.length; i++)
            System.out.print(potato[i]);
    }
}

```

When I run this, I get 0000000000 as an output. I think there is something wrong in the method since I am returning an array that has been initialized but nothing has been put in there. How do I (in my nested for loop) add each number in the sorted array?