Implemented ordering of exercises