cannot seem to inject @inbounds for the canonical sort in an optimal way...