Skip to content

Commit

Permalink
Applying that sort method also to collections
Browse files Browse the repository at this point in the history
  • Loading branch information
mowgli committed Mar 4, 2016
1 parent 0c87c52 commit 620b15a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/collect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 620b15a

Please sign in to comment.