Columns order

Hi,

I have a got a new problem

I fill an interactive table with different columns I created "on the fly".

That means that the first row that arrive to the interactive table might contains 3 columns (let's say column a, b, c) but the second row may contain 5 columns (or 3 again but different columns (let's say column b,c,d)).

So when the interactive table is populated it contains all the different columns name and therefore it's possible that even the row with the largest number of columns hasn't all the columns.

So it's impossible to use a reorder or keep function on a row (it will sort only the columns of this row and not all the interactive table's columns!)

How can I fix that in order to order all the columns of the interactive table

thanks,

florent