def get_animated_frames_by_sequence_names_dict(files_list):
    """
    Returned a dictionary containing sorted frames ranges list
    for each sequences.

    Parameters
    ----------
        files_list (list): List of filenames strings

    Returns
    -------
        seq_frames_dict (dict):
            Dictionary storing sequences & sequences_frames values

    Example
    -------
    >>> files_list = ['c.1009.jpg', 'c.1003.jpg', 't.1003.jpg', 't.1002.jpg']
    >>> get_animated_frames_by_sequence_names_dict(files_list)
    >>>>>> {'c': [1003, 1009], 't': [1002, 1003]}

    """
    seq_frames_dict = dict()

    # this function make it easier
    # for us to map
    def update_seq_dict(key, value):
        if key not in seq_frames_dict:
            seq_frames_dict[key] = []
        seq_frames_dict[key].append(int(value))

    # populate dict so seq_frames_dict[seq] = [seq_frames]
    map(
        lambda x: update_seq_dict(*x.split('.')[:2]),
        files_list
    )

    # sort seq frames in ascending order
    for k in seq_frames_dict:
        seq_frames_dict[k].sort()

    return seq_frames_dict