from typing import List
from typing import Any


def sort_data(sorted_indices: List[int], data: List[Any]) -> List[Any]:
    """Sorts the data using given indices.

    :param sorted_indices: sorted indices
    :param data: data
    :return: sorted data
    """
    new_data = []
    for index in sorted_indices:
        new_data.append(data[index])
    return new_data