import re


def natural_key(string_):
    """Split string_ into number / letter words, so e.g. A2 is lower than A10

    From http://stackoverflow.com/a/3033342/15890"""
    return [int(s) if s.isdigit() else s for s in re.split(r'(\d+)', string_)]