Sorting actions added to controller/view. Changed some alert business.