Applying that sort method also to collections
authorKlaus Ethgen <[email protected]>
Fri, 4 Mar 2016 10:44:47 +0000 (11:44 +0100)
committerKlaus Ethgen <[email protected]>
Fri, 4 Mar 2016 10:44:47 +0000 (11:44 +0100)
src/collect.c

index e3c015719b9d3c86b98546284afb277a28bb88e8..0a76b710cd9cb071c83fd2dde629ef3fa8fb0b3e 100644 (file)
@@ -141,6 +141,11 @@ static gint collection_list_sort_cb(gconstpointer a, gconstpointer b)
                        if (cia->fd->date > cib->fd->date) return 1;
                        return 0;
                        break;
+               case SORT_CTIME:
+                       if (cia->fd->cdate < cib->fd->cdate) return -1;
+                       if (cia->fd->cdate > cib->fd->cdate) return 1;
+                       return 0;
+                       break;
                case SORT_PATH:
                        return utf8_compare(cia->fd->path, cib->fd->path, options->file_sort.case_sensitive);
                        break;