Open johnnyutahh opened 1 year ago
Off to investigate
Ahh yeah so I could see why this is confusing. erdtree
sorts in such a way that makes a coherent tree structure:
I didn't think of the effects this would have on the flat
and iflat
layouts. I will probably have sorting work differently between the flat
/iflat
layouts and the regular
/inverted
layouts.
I didn't think of the effects this would have on the
flat
andiflat
layouts. I will probably have sorting work differently between theflat
/iflat
layouts and theregular
/inverted
layouts.
That's what I was thinking and makes perfect sense to me.
@solidiquis - is this comfortably feasible for a future erd
release?
Yes I'm working on it today actually :)
Edit: the next release should be out later this week.
erd -y iflat --sort size --dirs-only
does not appear to sort the dirs properly.My guess is that it's sorting the non-dirs,
-y iflat
output first and then applying the--dirs-only
"filter"... but I've not tested nor investigated my guess, so it (my guess) may not be worth much.The order of the
-y, --sort, --dirs-only
parameters seems to have no effect, but I may not have tried every combination. Broader question: do we want the order to matter? I propose it should not.