diff --git a/app/src/main/java/ch/nuth/zhaw/exbox/SortServer.java b/app/src/main/java/ch/nuth/zhaw/exbox/SortServer.java index 48c5d90..0cc5be1 100644 --- a/app/src/main/java/ch/nuth/zhaw/exbox/SortServer.java +++ b/app/src/main/java/ch/nuth/zhaw/exbox/SortServer.java @@ -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; } }