GNOME Bugzilla – Bug 647491
Default sort order wrong in list view
Last modified: 2011-09-07 20:32:17 UTC
The default sort order setting does not work as expected when using the list view. Specifically: Selecting -> Sorts by ------------------------ By Size -> Name By Type -> Size By Mod Date -> Type etc. It can easily be reproduced by setting the default sort preference and then navigating to any directory and resetting the view to defaults (View->Reset View to Defaults). I've tracked it down to "nautilus-list-view.c", function get_default_sort_order. I'm not familiar with the code base but it looks like the attributes array has an extraneous element "uri", causing the function to return wrong strings for the settings enum. Removing the "uri" seems to have fixed it for me.
Created attachment 185750 [details] [review] Remove line with "uri" string.
Thanks, this looks good. I pushed the patch to git master.