SOLUTION: setting CASE_SUMMARY attribute sortable to false and checking if the $_POST['sort'] does not contains that index.