Sort before map
Merge pull request #16 from cajbecu/patch-1

Bugfix: Sort before map