```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 to be sorted.
        index_no: The index of the inner list to sort by.

    Returns:
        A new list containing the sorted lists.
    """
    return sorted(list_data, key=lambda inner_list: inner_list[index_no])
```