Update related_posts.py

Related posts are ordered by slug to avoid producing different HTML files for each compilation. If the same site is compiled on different machines not ordering related posts may produce different posts. When committing you get differences that are not "real" changes in the posts.