mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix sorting
This commit is contained in:
parent
8f3f64b5a6
commit
dc7711271c
|
@ -4809,6 +4809,11 @@ static int set_sort_flags(int r)
|
||||||
break;
|
break;
|
||||||
case 'v': /* Version */
|
case 'v': /* Version */
|
||||||
namecmpfn = (namecmpfn == &xstrverscasecmp) ? &xstricmp : &xstrverscasecmp;
|
namecmpfn = (namecmpfn == &xstrverscasecmp) ? &xstricmp : &xstrverscasecmp;
|
||||||
|
cfg.timeorder = 0;
|
||||||
|
cfg.sizeorder = 0;
|
||||||
|
cfg.apparentsz = 0;
|
||||||
|
cfg.blkorder = 0;
|
||||||
|
cfg.extnorder = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -5678,7 +5683,8 @@ nochange:
|
||||||
if (r == 'd' || r == 'a')
|
if (r == 'd' || r == 'a')
|
||||||
goto begin;
|
goto begin;
|
||||||
|
|
||||||
break;
|
qsort(dents, ndents, sizeof(*dents), entrycmpfn);
|
||||||
|
continue;
|
||||||
case SEL_STATS: // fallthrough
|
case SEL_STATS: // fallthrough
|
||||||
case SEL_CHMODX:
|
case SEL_CHMODX:
|
||||||
if (ndents) {
|
if (ndents) {
|
||||||
|
|
Loading…
Reference in a new issue