If you could explain your use case then we could think of a better solution.
I dont think there is an out of the box feature for the same, but you could do the following:
- Add an attribute ‘SrNumber’ to the data grid entity
- Update this attribute every time you create/delete an object for that data grid entity (Upon delete, this would mean updating all the objects of that entity, which is not very optimal)
- Add this attribute as the first column in data grid
- Sort your data grid using ‘SrNumber’ attribute