filtering and sorting course list