patial quick sort