when click on sortable th link, find rows according to selected filter
fix nil errors when create new person, + redirect to edit action instead of index
keep search text when clicking on sortable links