ZB - Sort into descending order.

Syntax:

ZB

Description:

ZB sorts a set of lines into descending order, according to the ASCII collating sequence. If you do not specify an address, ZB does nothing. If you specify one address, ZB sets "." to that line but otherwise does nothing. If you specify two addresses, ZB sorts all the lines between and including the given lines. In this case, the first address must precede the second in the buffer.

FRED considers each line an indivisible unit and compares them on a strict left-to-right basis. At the end of a sort, ZB sets "." to the last line of the sorted text. ZB sets the condition register TRUE if the lines sorted were all the same, and FALSE otherwise.

Because the sort algorithm used by ZB is not overly efficient, you shouldn't use ZB to sort large files.

Copyright © 1998, Thinkage Ltd.