Persist sort preferences, fixes #99