'Pop the top item off the stack and append
it to the sorted list.
@return: The popped item.
@rtype: I{item}'

def pop(self):

    try:
        frame = self.stack.pop()
        return frame[0]
    except:
        pass
