Change `notifyAll` for `notify` in sort completion wait procedure.