fix lessons sort