remember the sort mode - closes #45