aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 20214a6..d541323 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4809,6 +4809,11 @@ static int set_sort_flags(int r)
break;
case 'v': /* Version */
namecmpfn = (namecmpfn == &xstrverscasecmp) ? &xstricmp : &xstrverscasecmp;
+ cfg.timeorder = 0;
+ cfg.sizeorder = 0;
+ cfg.apparentsz = 0;
+ cfg.blkorder = 0;
+ cfg.extnorder = 0;
break;
default:
return 0;
@@ -5678,7 +5683,8 @@ nochange:
if (r == 'd' || r == 'a')
goto begin;
- break;
+ qsort(dents, ndents, sizeof(*dents), entrycmpfn);
+ continue;
case SEL_STATS: // fallthrough
case SEL_CHMODX:
if (ndents) {