code: def query_by_post(postid):
          '''
          Query records by post.
          '''
          return TabPost2Tag.select().where(
              TabPost2Tag.post_id == postid
          ).order_by(TabPost2Tag.orderf query_by_post(postid):
          '''
          Query records by post.
          '''
          return TabPost2Tag.select().where(
              TabPost2Tag.post_id == postid
          ).order_by(TabPost2Tag.order)
docs: Query records by post.