cosmetics in GUI view related code
rename SORT_METHOD_DETAILS to GUIViewSortDetails
store the sort order per sort method instead of globally
Merge pull request #5959 from Montellese/sorting_refactor

sorting: cleanup and refactor to allow different sort orders for the different sort methods