Exception in thread "main" java.lang.IllegalArgumentException: Comparison method violates its general contract!
	at java.util.ComparableTimSort.mergeHi(ComparableTimSort.java:862)
	at java.util.ComparableTimSort.mergeAt(ComparableTimSort.java:479)
	at java.util.ComparableTimSort.mergeForceCollapse(ComparableTimSort.java:418)
	at java.util.ComparableTimSort.sort(ComparableTimSort.java:218)
	at java.util.Arrays.sort(Arrays.java:1244)
	at Hausaufgaben.Hausaufgabe070514.selection(Hausaufgabe070514.java:40)
	at Hausaufgaben.Hausaufgabe070514.main(Hausaufgabe070514.java:25)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)