Fix sorting

This commit is contained in:
Arun Prakash Jana 2020-03-29 02:31:48 +05:30
parent 8f3f64b5a6
commit dc7711271c
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 7 additions and 1 deletions

View File

@ -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) {