nls: Sorting compose sequences rigorously in mirroring pairs, as is custom.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>