'Return sorted list of integers - the old logs\' identifiers.'

def listLogs(self):

    result = []
    for name in glob.glob(('%s.*' % self.path)):
        try:
            counter = int(name.split('.')[(-1)])
            if counter:
                result.append(counter)
        except ValueError:
            pass
    result.sort()
    return result
