CALC: Sort multiple columns

Is it possible to sort two columns in a way that each value that only exists in one column generates an empty row in the other column?

These are the 2 Columns:

And the result should look like this:

Hi

An example in the TriDeuxColonnes.ods attached, that uses 3 columns of intermediate results.

I hope someone will find a simpler solution.

Regards