add sorting to lectures 2.0