Categories ordering (fixes #2)