Fix some errors
Add topic3 sorting