Scoped sorting variable for classnotes