pyrit.models.sort_message_pieces#
- sort_message_pieces(message_pieces: list[MessagePiece]) list[MessagePiece][source]#
Group by conversation_id. Order conversations by the earliest timestamp within each conversation_id. Within each conversation, order messages by sequence.