def sort_order(object_description: dict, key_count: int = 5, ascending: bool = True):
    """
    .. _color_sort
    sort_order
    ----------------
    Sort items in a dictionary according to value

    Parameters
    ----------
    object_description: dict
        A dictionary whose values need sorting
    key_count: int
        The number of items to return from the sort
    ascending: bool
        The order to perform the dictionary sort. By default, set to True.
    :return: A sorted dictionary with specific number
    """
    if type(key_count) != int:
        raise TypeError(
            f"color_count has to be an integer. Provided {type(key_count)} "
        )

    if type(ascending) != bool:
        raise TypeError(
            f"The value of the 'ascending' parameter is a boolean. Provided {type(ascending)} "
        )

    sorted_colors = {
        k: v
        for k, v in sorted(
            object_description.items(), key=lambda item: item[1], reverse=ascending
        )
    }
    return dict(list(sorted_colors.items())[0:key_count])