Fixed remembering sorting state