def __init__(self, rating, category, sort):
if sort == '<STR_LIT>':<EOL><INDENT>assert category != '<STR_LIT>', '<STR_LIT>'<EOL><DEDENT>self.data = rating<EOL>self.sort = sort<EOL>
Sorting a ratings or show object will change the order of its entries.

        :param rating: A ratings object (cable or broadcast) or show object.
        :param category: cable or broadcast.
        :param sort: show, net, time, viewers, rating, or share (broadcast only)