reverse time and size sort order (pointed out by tege)

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9386 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2000-12-14 00:07:20 +00:00
parent 6467949e8c
commit e1e87a72f8

View File

@@ -304,7 +304,7 @@ compare_mtime(struct fileinfo *a, struct fileinfo *b)
return 1;
if(b->filename == NULL)
return -1;
return a->st.st_mtime - b->st.st_mtime;
return b->st.st_mtime - a->st.st_mtime;
}
static int
@@ -314,7 +314,7 @@ compare_size(struct fileinfo *a, struct fileinfo *b)
return 1;
if(b->filename == NULL)
return -1;
return a->st.st_size - b->st.st_size;
return b->st.st_size - a->st.st_size;
}
static void