Route sorting

This commit is contained in:
Nabeel Shahzad
2018-05-28 18:15:51 -05:00
parent 42fb13294b
commit 59b99497a7
3 changed files with 16 additions and 5 deletions

View File

@@ -107,7 +107,7 @@ class AcarsController extends Controller
return new AcarsRouteResource(Acars::where([
'pirep_id' => $id,
'type' => AcarsType::FLIGHT_PATH
])->orderBy('created_at', 'asc')->get());
])->orderBy('sim_time', 'asc')->get());
}
/**