Speed up quicksort

torch.sort() ascending: change choice of pivot to the middle element rather than the first. This avoids the worst-case being on pre-sorted input.
1 file changed