def sortByNthElement(theList, N):
    """Sort a list of items by the Nth element of each item.

    Args:

        theList (iterable of indexable items): The list of items to be sorted.

        N (int): The index of the elements that should be used for the sorting.

    Returns: 

        list: A new list sorted in increasing order by the Nth element of each item in theList.
    
    """
    return sorted(theList, key=lambda x: x[N])