'Compute author_sort value from author
Tokenize author string, return capitalized string with last token first
Args:
author (str): author, e.g. \'John Smith\'
Return:
(str): \'Smith, john\''

def _kf_author_to_author_sort(self, author):

    tokens = author.split()
    tokens = (tokens[(-1):] + tokens[:(-1)])
    if (len(tokens) > 1):
        tokens[0] += ','
    return '    '.join(tokens).capitalize()
