Cannot Get Sort Property from Grid

I cannot call something like getSortContainerPropertyId() on Grid which is quite big problem because I caanot keep the grid sorted when new items are being added dynamically. I think that it’s a fail that should be fixed. Any suggestions how to work around?

I’ve just figured out that frid.getSortOrder() does this. Sorry for obsolete post…