From fd975c77fda8dc2485eede3c15aee3fc3d236a9f Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Thu, 23 May 2013 19:40:27 -0400 Subject: Add %sort() and %dribble_merge() Add %sort(), which binary-sorts a single list of values, and %dribble_merge(), which takes a quoted length, a separator, and some expressions and produces a list of lists of values using the separator, where no list is larger than the length. --- doc/format-specifiers.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/format-specifiers.txt b/doc/format-specifiers.txt index 7dca9db..8919d7a 100644 --- a/doc/format-specifiers.txt +++ b/doc/format-specifiers.txt @@ -621,3 +621,12 @@ And here's how an example expression evaluates for ''cn=group'': %default("%{member}","jim") -> (uid=bob,uid=pete) %default("%{membername}","bob") -> (jim) %default("%{nosuchvalue}","bob") -> (bob) + +=== sort === + + sort(''EXPRESSION'') + +Evaluates ''EXPRESSION'', returning its values if any are produced, sorted by +binary value. This is more useful for ensuring consistency than prettiness, +as the sorting is not case-aware and doesn't recognize numbers. + -- cgit