code: def _serialise_posts_and_tags_from_joined_rows(cls, joined_rows):
          
          posts_by_id = OrderedDict()
          tags_by_post_id = defaultdict(list)
          for joined_row in joined_rows:
              post_id = joined_row.post_id
              post = cls._serialise_post_from_joined_row(joined_row)
              posts_by_id[post_id] = post
              tags_by_post_id[post_id].append(joined_row.tag_text)
  
          for id, post in posts_by_id.items():
              tags = tags_by_post_id.get(id)
              if tags:
                  post["tags"] = tags
  
          return [post for post in posts_by_id.values()]
docs: Translates multiple rows of joined post and tag information
          into the dictionary format expected by flask-blogging.
          There will be one row per post/tag pairing.