Queue sorting

Hi Dave,

What is the internal sorting algorithm used in system verilog?
Similarly, i was curious to know the algorithms for most of the array manipulation methods and how they stand w.r.t space and time complexity? ( like reverse, reverse sort etc)