My foreach return a different array when there is different $Tag i need My Foreach to return all tasks in 1 array not multi because I can't sort them correctly
@foreach ($Paths->pathtags as $Tag)
   {{ $Tag->name }}
     @foreach ($Tag->Tasks as $Task)
       {{ $Task->id   }}
       {{ $Task->name }}
     @endforeach
@endforeach
in Example
Tag Name  : Tag1 , Tag2
Task      : id 11
Task Name : Task number 1
................................................
Tag Name  : Tag4 , Tag6
Task      : id 7
Task Name : Task number 2   
.................
Tag Name  : Tag4 , Tag6
Task      : id 8
Task Name : Task number 3   
So if the Tags is different I can't sort them only tasks with same tags is able to be sort
foreachdoesn't return the multiple arrays... that's the way you built your data structure or retrieve the data from the DB - Edwin Krauseflattenfunction. - sheng