summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-06-14 17:55:15 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-06-14 17:55:57 (GMT)
commit575f97763f08f0358cb5ccb4ac937d1610cbbbf7 (patch)
tree3388699ede0899555f93a56adcf103a539b1b5a9 /Help/command
parent65ee7d1cc399c5cac25d97827f32e8c5ba60b419 (diff)
parent49a51a61d75741645c824e45abeac215483b297e (diff)
downloadCMake-575f97763f08f0358cb5ccb4ac937d1610cbbbf7.zip
CMake-575f97763f08f0358cb5ccb4ac937d1610cbbbf7.tar.gz
CMake-575f97763f08f0358cb5ccb4ac937d1610cbbbf7.tar.bz2
Merge topic 'list_sort'
49a51a61d7 list: Add options to control the SORT comparison operation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2065
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/list.rst22
1 files changed, 19 insertions, 3 deletions
diff --git a/Help/command/list.rst b/Help/command/list.rst
index 589e572..ad2c428 100644
--- a/Help/command/list.rst
+++ b/Help/command/list.rst
@@ -28,7 +28,7 @@ Synopsis
`Ordering`_
list(`REVERSE`_ <list>)
- list(`SORT`_ <list>)
+ list(`SORT`_ <list> [...])
Introduction
^^^^^^^^^^^^
@@ -253,7 +253,23 @@ Reverses the contents of the list in-place.
::
- list(SORT <list>)
-
+ list(SORT <list> [COMPARE <compare>] [CASE <case>] [ORDER <order>])
Sorts the list in-place alphabetically.
+Use the option ``<compare>`` to select the compare type for sorting.
+The ``<compare>`` option may be one of:
+
+* ``STRING``: Sorts a list of strings alphabetically.
+* ``FILE_BASENAME``: Sort a list of pathnames of files by their basenames.
+
+Use the option ``<case>`` to select a case sensitive or case insensitive sort mode.
+The ``<case>`` option may be one of:
+
+* ``SENSITIVE``: Sorts the list alphabetically.
+* ``INSENSITIVE``: Sorts the list alphabetically in descending order.
+
+Use the option ``<order>`` to select a case sensitive or case insensitive sort mode.
+The ``<order>`` option may be one of:
+
+* ``ASCENDING``: Sorts the list in ascending order.
+* ``DESCENDING``: Sorts the list in descending order.