from typing import OrderedDict


def _get_format_order(input_format: str):
    """Return order of <artiste>, <album>, <track>, <year> in input_format."""
    unordered_dictionary = {input_format.find("<artiste>"): "artiste",
                            input_format.find("<track>"): "track",
                            input_format.find("<title>"): "title",
                            input_format.find("<year>"): "year"}
    ordered_dictionary = OrderedDict(sorted(unordered_dictionary.items()))
    order = [name for name in ordered_dictionary.values()]
    return order