Cleaned up C API for rowOrderStats()