Move localstorage elements outside scaffold
Store sortBy in localstorage