Fixing sorting bug in ga code.
Merge pull request #1 from SebastianEdwards/master

Fixing sorting bug in ga code.