summaryrefslogtreecommitdiff
path: root/coreutils/ls.c
diff options
context:
space:
mode:
authorManuel Novoa III2004-03-08 10:54:29 +0000
committerManuel Novoa III2004-03-08 10:54:29 +0000
commit1117c5281b4d0ab0a91678aa9e9ce92be8aefed7 (patch)
tree0825c940ee56e5bdc95cf65795bb8424b790d75d /coreutils/ls.c
parent948d4907a0d13f0b4f2a8b5985504ef406686b04 (diff)
downloadbusybox-1117c5281b4d0ab0a91678aa9e9ce92be8aefed7.zip
busybox-1117c5281b4d0ab0a91678aa9e9ce92be8aefed7.tar.gz
Fix broken sort order flags.
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r--coreutils/ls.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 46fe39d..2605ab1 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -920,10 +920,10 @@ static const unsigned opt_flags[] = {
# endif
#endif
#ifdef CONFIG_FEATURE_LS_SORTFILES
- SORT_ORDER_REVERSE, /* r */
SORT_SIZE, /* S */
+ SORT_EXT, /* X */
+ SORT_ORDER_REVERSE, /* r */
SORT_VERSION, /* v */
- SORT_EXT, /* v */
#endif
#ifdef CONFIG_FEATURE_LS_FILETYPES
LIST_FILETYPE | LIST_EXEC, /* F */
@@ -1110,7 +1110,6 @@ extern int ls_main(int argc, char **argv)
cur = cur->next;
}
-
if (all_fmt & DISP_NOLIST) {
#ifdef CONFIG_FEATURE_LS_SORTFILES
shellsort(dnp, nfiles);