[cyril] added method for sorting posts.