sort.php add has method