diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2013-04-04 20:01:35 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2013-04-04 20:19:10 -0400 |
commit | dd8f341127ff9f6cfdd78f223b131025c849c4dc (patch) | |
tree | 8d98e3ade0087268d36f97d2636243a0b5a16588 | |
parent | 9f2d8a519a42aa33ea05e99910632b628586978a (diff) | |
download | nautilus-dd8f341127ff9f6cfdd78f223b131025c849c4dc.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.c | 3 |
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: |