sort orders on times were reversed
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 9 Mar 1991 10:19:09 +0000 (02:19 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 9 Mar 1991 10:19:09 +0000 (02:19 -0800)
SCCS-vsn: bin/ls/cmp.c 5.4

usr/src/bin/ls/cmp.c

index 2d19982..bf2a7a7 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)cmp.c      5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)cmp.c      5.4 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -31,35 +31,35 @@ revnamecmp(a, b)
 modcmp(a, b)
        LS *a, *b;
 {
 modcmp(a, b)
        LS *a, *b;
 {
-       return(a->lstat.st_mtime - b->lstat.st_mtime);
+       return(b->lstat.st_mtime - a->lstat.st_mtime);
 }
 
 revmodcmp(a, b)
        LS *a, *b;
 {
 }
 
 revmodcmp(a, b)
        LS *a, *b;
 {
-       return(b->lstat.st_mtime - a->lstat.st_mtime);
+       return(a->lstat.st_mtime - b->lstat.st_mtime);
 }
 
 acccmp(a, b)
        LS *a, *b;
 {
 }
 
 acccmp(a, b)
        LS *a, *b;
 {
-       return(a->lstat.st_atime - b->lstat.st_atime);
+       return(b->lstat.st_atime - a->lstat.st_atime);
 }
 
 revacccmp(a, b)
        LS *a, *b;
 {
 }
 
 revacccmp(a, b)
        LS *a, *b;
 {
-       return(b->lstat.st_atime - a->lstat.st_atime);
+       return(a->lstat.st_atime - b->lstat.st_atime);
 }
 
 statcmp(a, b)
        LS *a, *b;
 {
 }
 
 statcmp(a, b)
        LS *a, *b;
 {
-       return(a->lstat.st_ctime - b->lstat.st_ctime);
+       return(b->lstat.st_ctime - a->lstat.st_ctime);
 }
 
 revstatcmp(a, b)
        LS *a, *b;
 {
 }
 
 revstatcmp(a, b)
        LS *a, *b;
 {
-       return(b->lstat.st_ctime - a->lstat.st_ctime);
+       return(a->lstat.st_ctime - b->lstat.st_ctime);
 }
 }