projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
b50cce7
)
Merge branch 'sort-by-ctime'
author
Klaus Ethgen
<Klaus@Ethgen.de>
Fri, 4 Mar 2016 10:45:17 +0000
(11:45 +0100)
committer
Klaus Ethgen
<Klaus@Ethgen.de>
Fri, 4 Mar 2016 10:45:17 +0000
(11:45 +0100)
* sort-by-ctime:
Applying that sort method also to collections
src/collect.c
patch
|
blob
|
history
diff --git
a/src/collect.c
b/src/collect.c
index
e3c0157
..
0a76b71
100644
(file)
--- a/
src/collect.c
+++ b/
src/collect.c
@@
-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;