summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2013-05-23 19:40:27 -0400
committerNalin Dahyabhai <nalin@redhat.com>2013-05-23 19:46:59 -0400
commitfd975c77fda8dc2485eede3c15aee3fc3d236a9f (patch)
tree50393edced9b28c9cdfd1f11f74791993a95c4f4 /doc
parentdd71353dad22dcb07d1c9e90c7c634aa78ec0f77 (diff)
downloadslapi-nis-fd975c77fda8dc2485eede3c15aee3fc3d236a9f.tar.gz
slapi-nis-fd975c77fda8dc2485eede3c15aee3fc3d236a9f.tar.xz
slapi-nis-fd975c77fda8dc2485eede3c15aee3fc3d236a9f.zip
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/format-specifiers.txt9
1 files changed, 9 insertions, 0 deletions
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.
+