make sure Projects and Contexts are sorted