h6. [[OS SWI Calls]] h6(. » OS_HeapSort32 h2. OS_HeapSort32 h5. (SWI &7F) |_<^{width:4em}. Entry | | |<^. R0 |<^. Number of elements | |<^. R1 |<^. Pointer to word-array| |<^. R2 |<^. [[HeapSort Types|Sort type]] or [[HeapSort Comparison Routine|comparison routine]]| |<^. R7 |<^. [[HeapSort Flags|Flags]]| |\2<^. Optional:| |<^. R3 |<^. Workspace pointer | |<^. R4 |<^. Array of actual objects | |<^. R5 |<^. Size of object in R4 | |<^. R6 |<^. Workspace of R5 bytes (if R5>16k) | |_<^{width:4em}. Exit | | |\2<^. All registers preserved | h4. Use The purpose of this call is to perform a fast and memory efficient sort on a list of objects. h4. Notes The CallASWI module allows this SWI to be used with earlier versions of RISC OS (before 5.00). The earlier version of this SWI [[OS_HeapSort]] is also available. h4. See also * [[HeapSort Comparison Routine]] * [[HeapSort Flags]] * [[HeapSort Types]] * [[OS_HeapSort]]