Sort pinned topic for mongodb

Added pinned topic sorting on mongodb TopicRepository