Implement a function sort_items that sorts a list of items based on specified priorities. The sorting should follow these criteria in order:
value (ascending)
weight (ascending)
type (ascending in lexicographic order)
date (ascending)
name (ascending in lexicographic order)
Input Requirements:
The function should accept a single parameter:
items (list of tuples): A list where each tuple contains the following five attributes in this order:
value (int or float): The value of the item.
weight (int or float): The weight of the item.
type (str): The type of the item.
date (str): The date associated with the item (formatted as a string).
name (str): The name of the item.
Output Requirements:
The function should return a single output:
A list of tuples, which represents the sorted items according to the specified priorities.
Implementation:
Write the solution in a file called /app/solution.py using the provided function signature and implementation style. Be sure to implement the sorting logic according to the specified criteria using Python's built-in sorting capabilities. Make sure to handle edge cases such as empty input lists or items with missing attributes appropriately.