Alexey is right, you just copy pointer to array and then sort the array within the memory,so the assert always will be true.
You should use Arrays.copyof  or System.arraycopy.