SeqSort

Sorts a Sequence in place

Keywords

Parameters & Returns

Parameters

seq Sequence
ascending Int

Returns

Void

Quick Summary

Sorts a Sequence in place

Technical Exegesis...

Sorts a Sequence in place. Syntax is 'SeqSort seq' (ascending) or 'SeqSort seq, False' (descending); the ascending argument is optional and defaults to True. Sequences of Int, Double and String sort by natural order. To sort a Sequence of Types, the Type must define a 'Method Compare:Int(other:TType)' returning -1, 0 or 1 (BlitzMax-style); SeqSort uses it automatically and a Type without one is a compile-time error.

Example

Example.bam
; No example implemented yet