ArraySort
ptolemy.actor.lib.ArraySort

Sort the elements of an input array. This actor reads an array from the input port and sends a sorted array to the output port. The input array is required to contain either strings or non-complex scalars, or a type error will occur. The output array will have the same type as the input and can can be sorted in either ascending or descending order. Duplicate entries can be optionally removed.

Author(s): Mark Oliver, Edward A. Lee
Version:$ID: ArraySort.java,v1.0 2003/07/09
Pt.Proposed Rating:Red (cxh)
Pt.Accepted Rating:Red (cxh)




allowDuplicates
Tells the actor whether or not to remove duplicate elements. This is a boolean that defaults to true.

ascending
The sort order attribute. This tells the actor whether to sort the elements in ascending or descending order. It is a boolean that defaults to true, which means ascending order.