h6. [[OS SWI Calls]] h6(. » OS_HeapSort h2. OS_HeapSort h5. (SWI &4F) |_<^{width:4em}. Entry | | |<^. R0 |<^. Number of elements | |<^. R1 |<^. Pointer to word-array + [[HeapSort Flags|flags]]| |<^. R2 |<^. [[HeapSort Types|Sort type]] or [[HeapSort Comparison Routine|comparison routine]]| |\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 This SWI is deprecated, because the use of flag bits in address values makes it unsafe to use on systems with 32bit logical memory maps. Please use [[OS_HeapSort32]] instead. The purpose of this call is to perform a fast and memory efficient sort on a list of objects. h4. See also * [[HeapSort Comparison Routine]] * [[HeapSort Flags]] * [[HeapSort Types]] * [[OS_HeapSort32]]