fix bug where results can appear in the wrong order
Merge pull request #50 from beanieboi/fix-order-bug

fix bug where results can appear in the wrong order