Functions for sort departures and  for count minutes to nearest departure were added