Forgot to sort the array correctly.