fix bug: displaying lessons and resources
fix sorting bug