def sort_dict_by_value(collection: dict, reverse: bool=True) -> list:
    """Sort a dictionary by the values inside, returns a list of keys

    Args:
        collection (dict(str, int)): A dict of string, integer pairs, where the string is the key and the integer is the value
        reverse (bool, optional): reverses the sort, True is descending. Defaults to True.

    Returns:
        list(str): List of strings sorted by the corresponding values from the 'collection' parameter
    """
    return [k for k, _ in sorted(collection.items(), key=lambda item: item[1], reverse=reverse)]