Sorting by ItemCategory and Caption on TTMSFMXTableView

Hello

On the image above I captured every row in order (1,2,3) but I grouped into "Comensal 1" and "Comensal 2".

How can I reorder by "CategoryID" so my user can see the row 1 and 3 in the same group and not separated?

Thanks

The CategoryID needs to start from 0, is this the case?

Yes

Normally, items should automatically be grouped when sorting, if the CategoryType is ctCustom. Is the LayoutMode lmGroup? Please provide some more information about the properties you have set.

Hello

I solved my needs with the "insert" method. Thanks