def atof(text):
    """
    helper for natural_keys
    attempt to convert text to float, or return text
    :param text: arbitrary text
    :return: float if succeeded to convert, the input text as is otherwise
    """
    try:
        retval = float(text)
    except ValueError:
        retval = text
    return retval
