from typing import Mapping
from typing import List
from typing import Tuple


def __sort_map_pairs_by_numeric_string_key(the_map: Mapping[str, int]) -> List[Tuple[str, int]]:
    """Sort mapping pairs by a numeric string key."""
    as_pairs = list(the_map.items())

    def get_key_as_number(pair):
        if pair[0] == "__na__":
            return 0
        return int(pair[0][1:])

    as_pairs.sort(key=get_key_as_number)
    return as_pairs