aboutsummaryrefslogtreecommitdiff
path: root/coreutils/sort.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-10-01 07:02:58 +0100
committerRon Yorston <rmy@pobox.com>2023-10-01 07:06:19 +0100
commit1942077cade6374a7c37fcdcf6cbf55dd52e13c4 (patch)
treeb3fd39398157f86af3cd22ebab562242c6ae48f3 /coreutils/sort.c
parent1ff6eb52032bb52501ef3bd8b49010ac19efa268 (diff)
downloadbusybox-w32-1942077cade6374a7c37fcdcf6cbf55dd52e13c4.tar.gz
busybox-w32-1942077cade6374a7c37fcdcf6cbf55dd52e13c4.tar.bz2
busybox-w32-1942077cade6374a7c37fcdcf6cbf55dd52e13c4.zip
sort: add support for sorting version strings
Add an implementation of strverscmp from musl so that the 'sort -V' option works. Add '-V' to the trivial usage message. Costs 248-256 bytes. (GitHub issue #370)
Diffstat (limited to 'coreutils/sort.c')
-rw-r--r--coreutils/sort.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/coreutils/sort.c b/coreutils/sort.c
index 2e952f81c..949948203 100644
--- a/coreutils/sort.c
+++ b/coreutils/sort.c
@@ -43,7 +43,12 @@
43 43
44//usage:#define sort_trivial_usage 44//usage:#define sort_trivial_usage
45//usage: "[-nru" 45//usage: "[-nru"
46//usage: IF_NOT_PLATFORM_MINGW32(
46//usage: IF_FEATURE_SORT_BIG("ghMcszbdfiokt] [-o FILE] [-k START[.OFS][OPTS][,END[.OFS][OPTS]] [-t CHAR") 47//usage: IF_FEATURE_SORT_BIG("ghMcszbdfiokt] [-o FILE] [-k START[.OFS][OPTS][,END[.OFS][OPTS]] [-t CHAR")
48//usage: )
49//usage: IF_PLATFORM_MINGW32(
50//usage: IF_FEATURE_SORT_BIG("ghMVcszbdfiokt] [-o FILE] [-k START[.OFS][OPTS][,END[.OFS][OPTS]] [-t CHAR")
51//usage: )
47//usage: "] [FILE]..." 52//usage: "] [FILE]..."
48//usage:#define sort_full_usage "\n\n" 53//usage:#define sort_full_usage "\n\n"
49//usage: "Sort lines of text\n" 54//usage: "Sort lines of text\n"