# [Diffusion] Folders first

#1

Reviewing the topic, I’ve found the following revision: https://secure.phabricator.com/D9343
that was made in 2016, but I couldn’t find any source code changes that corresponds to this revision.
Maybe I missed something there, but going through the phabricator’s “Settings” over and over again I haven’t found any “diffusion.browser.folders_before_files”.
Could someone point me a parameter to change to have the folders first in repository view.
Thanks!

#2

If you look at the top-left side of the page, you’d see the change was Abandoned, i.e. never made it into the code base.
In https://secure.phabricator.com/T4322, there’s more discussion, with the decision basically being “we should just put directories first”, but then this was never important enough for anyone to actually implement (and there’s some text about why this isn’t trivial).

#3

Ok, then could you give me a hint? As an example here: https://secure.phabricator.com/source/phabricator/ I can see the alphabetically ordered repository content list. How I can have the same order in my Diffusion instance?

#4

I think that’s just the way the files happen to be listed in `git ls-tree HEAD`, which is based on… internal git randomness?

#5

Is there any way that the folders could be just above the files always?
Does it have no trivial solution as well?

#6

Does it have no trivial solution as well?

No. No trivial solution exists.

T4322, above, explains why this isn’t trivial.

The post above explains that T4322 explains why this isn’t trivial (“and there’s some text about why this isn’t trivial”).

Please read T4322 carefully if you’re unsure why this isn’t trivial.

closed #7