finish counting sort