added sort seesion variable - if passed sort order and direction will save here