Sort the list of statuses. Fixes #41