diff options
-rw-r--r-- | src/nautilus-file.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nautilus-file.c b/src/nautilus-file.c index c14356d8f..5d6efdcb2 100644 --- a/src/nautilus-file.c +++ b/src/nautilus-file.c @@ -3480,6 +3480,11 @@ compare_by_type (NautilusFile *file_1, } result = g_utf8_collate (type_string_1, type_string_2); + if (result == 0) + { + /* Among files of the same (generic) type, sort them by mime type. */ + result = g_utf8_collate (file_1->details->mime_type, file_2->details->mime_type); + } g_free (type_string_1); g_free (type_string_2); |