Add sorting feature for lessons