lots_list = ['anything']

def returnlastchar(s):
    return s[10:]
decorated = [(returnlastchar(s), s) for s in lots_list]
decorated.sort()
lots_list = [x[1] for x in decorated]
Python Sort Last Characters