sort the FCFS list
This commit is contained in:
1 parent
0c97e5aa67
commit
c835944e8d
1 file changed
+1
@@ -109,6 +109,7 @@ class RecedingHorizonControl:
|
||||
|
||||
# check if we found relevant inbounds
|
||||
if 0 != len(inbounds):
|
||||
inbounds.sort(key = lambda x: x.InitialArrivalTime)
|
||||
return inbounds, earliestArrivalTime
|
||||
else:
|
||||
return None, None
|
||||
|
||||
Reference in new issue
Block a user