removed reverse (`-r') flag from `sort' in `list_posts' function