Sort a part of a list in place,a[i:j] = sorted(a[i:j])