Add/fix sorting to incidents_controller and index

Fixing typing errors in helper file and added new code for sorting to
incidents_controllers.rb and index.html.erb