How to change default "sort by" to "type" in nautilus
On Nemo (a recent fork of nautilus), I have the following in the menu :
Edit > Preferences
- then on the
Views
tab- I got a section called
Default View
- with a line Arrange items, there is a select where I can choose the default sort order
- I got a section called
Screenshot
Determine the current default value of Nautilus sort order using gsettings
gsettings get org.gnome.nautilus.preferences default-sort-order
Then change/set it to 'type'
gsettings set org.gnome.nautilus.preferences default-sort-order 'type'
The change happens instantly
update February 2017:
nautilus now has a configuration option to sort directories first (I think since 3.14 or so) so I recommend using that instead of changing the default sort order. It is literally the first item in GUI preferences.
initial post from May 2014
I see the same problems on Fedora 18 (using the same versions).
The first attempt using dconf directly via the command line does not work for me:
$ dconf write /org/gnome/nautilus/preferences/default-sort-order type
error: 0-4:unknown keyword
Now gsettings to the rescue:
$ gsettings set org.gnome.nautilus.preferences default-sort-order type
I'm not sure why dconf does not accept 'type' as a valid value even though dconf-editor explicitely lists it in the help text but gsettings works for me just fine.