Sort episoes based on query parameter.