Set default sorting

I installed Fedora Workstation today, which went very smoothly. I am running into a small little thing. I prefer my files to be always sorted by last modification date. But I’ve noticed I have to separately set that for every folder I access. Is there a way to do this by default? If I need to use the terminal, that’s fine. I’m already very comfortable using the terminal. I’m coming from having an Ubuntu server running Apache for over 10 years, so I’m not a Linux newbie, just haven’t had a Linux based desktop since 2010 when my job forced a Windows environment on me due to using apps that, even with wine, didn’t run at all on Linux.

Do you mean sorting within some Gnome application or within the command line itself?

Within the file manager in Gnome itself.

Might be related to issue #771.

I don’t have a Gnome installation anymore, but from the issue description, it looks like you may be able to set the sort order with gsettings via these keys:

  • org.gnome.nautilus.preferences
    • default-sort-order
    • default-sort-in-reverse-order

Try something like:

~ > gsettings set org.gnome.nautilus.preferences default-sort-order mtime

The value mtime is taken from the org.gnome.nautilus.SortOrder enum in data/org.gnome.nautilus.gschema.xml in the Nautilus repo. Other values are atime or btime, depending on which timestamp you want to use for sorting.

2 Likes