Add RAPTOR_API for raptor_sort_r