def get_sorted_lib_book_lists(lib_idx, sorted_lib_book_lists, remain_day, lib_daily_ships):
    """
    Helper function to get a list of sorted Book List with Library Index

    Args:
        lib_idx: Library Index
        , sorted_lib_book_lists: List of Full Book List sorted by score
        , remain_day: Remaing Day
        , lib_daily_ships: List of Number of Books available shipped daily with Library as Index
    
    Returns:
         a list of sorted Book List with Library Index
    """
    return sorted_lib_book_lists[lib_idx][:remain_day * lib_daily_ships[lib_idx]] if remain_day * lib_daily_ships[lib_idx] < len(sorted_lib_book_lists[lib_idx]) else sorted_lib_book_lists[lib_idx]