implemented functions to sort the results

the idea being the one that gets us to our destination comes first and
then ties are broken by which one comes at a later time where the later
the cruiser the better(since it means we'll be on the bus less time and
doing something important instead )