Fix status sort so that sorting is the same as in the perl version