sorting and adding new content