```python
def index_on_inner_list(list_data, index_no):
    """
    Sorts a list of lists by a given index of the inner list.

    Args:
        list_data: A list of lists.
        index_no: The index of the inner list to sort by.

    Returns:
        A new list of lists sorted by the specified index.
    """
    return sorted(list_data, key=lambda x: x[index_no])

```