Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
c5073c61
Commit
c5073c61
authored
May 25, 2001
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor formatting tweaks.
parent
342dd017
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
+21
-15
lib/python/Products/OFSP/help/dtml-sequence.stx
lib/python/Products/OFSP/help/dtml-sequence.stx
+21
-15
No files found.
lib/python/Products/OFSP/help/dtml-sequence.stx
View file @
c5073c61
sequence: DTML Sequence Functions
The 'sequence' module provides sequence sorting function.
The 'sequence' module provides
a
sequence sorting function.
Functions
sort(seq,(sort)) -- Sort the sequence *seq* of objects by the
optional
sort schema *sort*. *sort* is a sequence of tuples (key,func,direction)
that describe the sort order.
sort(seq,(sort)) -- Sort the sequence *seq* of objects by the
optional sort schema *sort*. *sort* is a sequence of tuples
'(key, func, direction)' that describe the sort order.
- *key* -- attribute of the object to be sorted.
- key -- Attribute of the object to be sorted.
- *func* -- defines the compare function (optional). Allowed values:
- func -- Defines the compare function (optional). Allowed values:
- "cmp" --
the standard
comparison function
- "cmp" --
Standard Python
comparison function
- "nocase" --
c
ase-insensitive comparison
- "nocase" --
C
ase-insensitive comparison
- "strcoll" or "locale" --
l
ocale-aware string comparison
- "strcoll" or "locale" --
L
ocale-aware string comparison
- "strcoll_nocase" or "locale_nocase" --
l
ocale-aware
- "strcoll_nocase" or "locale_nocase" --
L
ocale-aware
case-insensitive string comparison
- "xxx" -- a user-defined comparison function
- other -- A specified, user-defined comparison function,
should return 1, 0, -1.
-
*direction*
-- defines the sort direction for the key (optional).
-
direction
-- defines the sort direction for the key (optional).
(allowed values: "asc", "desc")
Examples
XXX
See Also
"Python cmp function":http://www.python.org/doc/lib/built-in-funcs.html
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment