Fix broken sort algorithm

This commit is contained in:
Manuel Thalmann 2022-12-05 22:23:51 +01:00
parent b5e1e861bc
commit e885c492ad

View file

@ -51,7 +51,7 @@ public class SortServer implements CommandExecutor {
int minIndex = i;
for (int j = i; j < a.length; j++) {
if (a[j] < a[i]) {
if (a[j] < a[minIndex]) {
minIndex = j;
}
}