def sort_list(len_1, len_2, len_3):
    """
    Create a list sorting the indexes along three directions:
    Input:
       len_1 = Number of elements of the array for the first index
       len_2 = Number of elements of the array for the second index
       len_3 = Number of elements of the array for the third index
    Output:
       order = An ordered list containig an a sequence of lists of 3 alements (one for each direction) that identify the position on the local index
    """
    order = []
    for i in range(0, len_1):
        for j in range(0, len_2):
            for k in range(0, len_3):
                order.append([i, j, k])

    return order