internal/cuetxtar: simplify ordering
Instead of reconstructing the order, now simply
mark the order of new files to be that of files
they are related too. This simplifies the code
and actually results in a more precise ordering.
Note that since we add new files first, derivative files will be added before their
related files. This mimics the behavior we
had so far.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I97553dcc7ebfb984bdef22a1b1925fbd0e866b1d
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199804
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Matthew Sackman <matthew@cue.works>