Numpy Sort According To Another Array In C