summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2013-04-04 20:01:35 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2013-04-15 18:42:48 -0400
commit771d497088bdc7c6c8be3c6a38f815c8ad531fca (patch)
tree90924742545bf807dc03433c5242785b749193ac
parent8d0ae533c01fc785c097329f2e7f9a3faf686b6d (diff)
downloadnautilus-771d497088bdc7c6c8be3c6a38f815c8ad531fca.tar.gz
file: do not reverse collated order for files with same search rank
When two search results rank equally, we fall back to the collated order. Since search is usually ranked reversed (highest at the top), we need to ensure we don't accidentally reverse the collated order as well. https://bugzilla.gnome.org/show_bug.cgi?id=688772
-rw-r--r--libnautilus-private/nautilus-file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 60a19547f..35235e154 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -3191,6 +3191,9 @@ nautilus_file_compare_for_sort (NautilusFile *file_1,
result = compare_by_search_relevance (file_1, file_2);
if (result == 0) {
result = compare_by_full_path (file_1, file_2);
+
+ /* ensure alphabetical order for files of the same relevance */
+ reversed = FALSE;
}
break;
default: