Add early check

This commit is contained in:
Arun Prakash Jana 2021-09-09 18:05:24 +05:30
parent 7f84fbc8a0
commit e7aec90889
1 changed files with 2 additions and 2 deletions

View File

@ -6577,10 +6577,10 @@ begin:
}
#endif
if (cfgsort[cfg.curctx] != '0') {
if (order && cfgsort[cfg.curctx] != '0') {
if (cfgsort[cfg.curctx] == 'z')
set_sort_flags('c');
if (order && (!cfgsort[cfg.curctx] || (cfgsort[cfg.curctx] == 'c'))
if ((!cfgsort[cfg.curctx] || (cfgsort[cfg.curctx] == 'c'))
&& ((r = get_kv_key(order, path, maxorder, NNN_ORDER)) > 0)) {
set_sort_flags(r);
cfgsort[cfg.curctx] = 'z';