Current code so far for enabling remember sort direction and making ascending default sort for column fields when clicked initially. Still need to clean up and do some more testing to ensure this works
cleaned up the code a little and tested that the sorting is now remembered by the system and defaults to ascending when new column is clicked for sorting for first time