src\Dependencies\Collections\Internal\ArraySortHelper.cs (53)
115keys[i] = keys[j];
116keys[j] = key;
126a[i] = a[j];
127a[j] = t;
267keys[i - 1] = keys[child - 1];
271keys[i - 1] = d;
283keys[j + 1] = keys[j];
287keys[j + 1] = t;
478SwapIfGreater(ref keys[zeroIndex], ref keys[middleIndex]);
479SwapIfGreater(ref keys[zeroIndex], ref keys[lastIndex]);
480SwapIfGreater(ref keys[middleIndex], ref keys[lastIndex]);
485Swap(ref keys[middleIndex], ref keys[nextToLastIndex]);
521Swap(ref keys[leftIndex], ref keys[rightIndex]);
527Swap(ref keys[leftIndex], ref keys[nextToLastIndex]);
545Swap(ref keys[0], ref keys[i - 1]);
556if (child < n && (keys[child - 1] == null || LessThan(ref keys[child - 1], ref keys[child])))
561if (keys[child - 1] == null || !LessThan(ref d, ref keys[child - 1]))
564keys[i - 1] = keys[child - 1];
568keys[i - 1] = d;
578while (j >= 0 && (t == null || LessThan(ref t, ref keys[j])))
580keys[j + 1] = keys[j];
584keys[j + 1] = t!;
699keys[i] = keys[j];
700keys[j] = key;
714keys[i] = keys[j];
715keys[j] = k;
860keys[i - 1] = keys[child - 1];
865keys[i - 1] = d;
881keys[j + 1] = keys[j];
886keys[j + 1] = t;
946ref TKey keyRef = ref keys[i];
947if (keyRef != null && GreaterThan(ref keyRef, ref keys[j]))
950keys[i] = keys[j];
951keys[j] = key;
965keys[i] = keys[j];
966keys[j] = k;
1102if (child < n && (keys[child - 1] == null || LessThan(ref keys[child - 1], ref keys[child])))
1107if (keys[child - 1] == null || !LessThan(ref d, ref keys[child - 1]))
1110keys[i - 1] = keys[child - 1];
1115keys[i - 1] = d;
1127while (j >= 0 && (t == null || LessThan(ref t, ref keys[j])))
1129keys[j + 1] = keys[j];
1134keys[j + 1] = t!;
1247keys[left] = keys[i];
1248keys[i] = temp;