access.seqlist

Definition/Access: Verbs, Releases: AP and R83

Definies collation sequence.

Description

defines Access collation sequence.

The sort(s) invoked by the 'by', 'by-dsnd', 'by-exp', or 'by-exp-dsnd' modifiers a left-to-right order determine the order in which items are processed by Access.

There is no limit to the number of sort keys within an Access report.

The 'by' modifier automatically sorts the specified attribute in ascending sequence, and only applies to the first value in the designated attribute, even if it contains multiple values.

The 'by-dsnd' modifier sorts in descending sequence, and only applies to the first value in the designated attribute, even if it contains multiple values.

The 'by-exp' modifier performs an 'exploded' sort and treats every value in a multi-valued attribute as a separate item for sorting purposes. 'by-exp' sorts in ascending sequence. 'by-exp-dsnd' also treats each every value as a separate item for sorting purposes, but sorts in descending sequence.

Example

sort entity by name name

This example has one sort key. It produces a listing of the entity item-id and
name attribute sorted by the value of the first name in each entity item.

sort entity by state by city by name

This example has three sort keys. First, the data in 'entity' is
sorted by ascending 'state' sequence, and within state by ascending
'city' sequence, and within city by ascending 'name'. The
attributes listed in the file's macro or output-macro are displayed.

sort invoices by-dsnd amount.due

This examples reverses the normal sort order and sorts the highest values to
the top of the list, which is useful for circumstances such as determining who
owes you the most money.

See Also

Command Name Type Description
access.by Modifier Defines (ascending) sort key in Access sentence.
access.by-dsnd Modifier Defines descending sort key in Access sentence.
access.by-exp Modifier Explodes multi-values for sorting purposes.
access.by-exp-dsnd Modifier Explodes multi-values in descending sequence.
access.without Modifier Same as with no or with not.
access.sreformat Verb: Access Reformats data in sorted order to file or tape.
access.sort Verb: Access Sorts file.
access.with Modifier Defines selection criteria in Access sentence.
access.s-dump Verb: Access Dumps items to tape in sorted order.
access.sort-label Verb: Access Produces formatted and sorted labels.
access.sselect Verb: Access Creates sorted list of items meeting specific criteria.
access.list-item Verb: Access Displays item in storage format.
access.verbs Definition General form of Access sentences.
collation.order Definition Definition of collation order.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.