Make computed.sort generate an answer immediately

This is a followup to pull #9356 that gives nicer timing. It extends the
arrayComputed protocol with a `flushedChanges` callback so that
implementations like `computed.sort` can confidently do batched
operations without waiting a whole run loop.