Commit b200f808 authored by Jérome Perrin's avatar Jérome Perrin

sorting is in wrong order

parent 676e7bbc
......@@ -118,7 +118,7 @@ class Simulation(DefaultSimulation):
# The ants in this generation are ranked based on their scores and the
# best 4 are selected
ants = sorted(ants, key=operator.itemgetter('score'), reverse=True)[:4]
ants = sorted(ants, key=operator.itemgetter('score'))[:4]
for l in ants:
# update the options list to ensure that good performing queue-rule
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment