Skip to content

Commit

Permalink
Return trade destinations by distance
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Jan 15, 2015
1 parent e070e5b commit a379a7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,8 @@ def getDestinations(self,
node.distLy)
)

destStations.sort(key=lambda dest: dest.distLy)

return destStations


Expand Down

0 comments on commit a379a7b

Please sign in to comment.