Sort the list of statuses. Fixes #41
Merge pull request #43 from marcomorain/infinite-loop

Sort the list of statuses. Fixes #41