fix sorting of topics