Added function to initialize a session variable with sort type when client navigates to page.
Tried to try the first part out a bit. Not sure if this is correct.
Changing sort type is no functioning...babysteps.