Have you tried to sort your vectors before combining them? That should solve your issue ... (being a kind of the "look forward" you were asking for)
HTH, Rata
Update: Sorting (of course) changes the order of the elements (that made the proposed solution so elegant ;-) ... when proposing it I wasn't aware of a requirement to preserve the order ... so with the clarification below the simple solution won't work ...
In reply to Re: Converting Arrays into Matrix
by Ratazong
in thread Converting Arrays into Matrix
by janDD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |