def __init__(self, prices, deletion_select, reverse=False):
        """
        :param list prices: Current prices
        :param int deletion_select: Used to decide if update should delete cache
        :param bool reverse: Used for sorting
        """
        self.prices = prices or []
        self.deletion_select = deletion_select
        self.reverse = reverse

        self.serialise = []
        self.sort()
def __init__ ( self , prices , deletion_select , reverse = False ) : self . prices = prices or [ ] self . deletion_select = deletion_select self . reverse = reverse self . serialise = [ ] self . sort ( )
:param list prices: Current prices
        :param int deletion_select: Used to decide if update should delete cache
        :param bool reverse: Used for sorting