Apache Camel — Resequencer

How can we get a stream of related but out-of-sequence messages back into the correct order?

The Resequencer from the EIP patterns allows you to reorganise messages based on some comparator. By default in Camel we use an Expression to create the comparator; so that you can compare by a message header or the body or a piece of a message etc.