     for i in (1..<count) {
       var j = i
       while j > 0 && compare(self[j], self[j - 1]) {
-        swap(&self[j - 1], &self[j])
+        swapAt(j - 1, j)
         j -= 1
       }
     }

    for j in (lo..<hi) {
      if compare(self[j], pivot) {
        if i != j {
          swap(&self[i], &self[j])
        }
        i += 1
      }
    }
    if i != hi {
      swap(&self[i], &self[hi])
    }
    return i
  }

    for i in (0..<count) {
      for j in (0..<count) {
        if compare(self[i], self[j]) {
          swapAt(i, j)
        }
      }
    }
