small opts for array sort

added some safe inlines since everything is static.