Sorting in Opensearch Dashboards Discover Table

Version: 2.16.0

Describe the issue: I’ve been looking into the Discover Table in discover for OpenSearch Dashboards and I am trying to understand how it works, specifically for sorting. I see that the DiscoverTable Component goes from DataGridTable > DataGrid > EuiDataGrid. According to Elasticsearch documentation visible here (https://eui.elastic.co/#/tabular-content/data-grid-advanced#data-grid-in-memory) the inMemory setting must be set to sorting in order for sorting to work on the table, but for some reason, sorting seems to work without it. I’ve confirmed this is odd behavior by building something as similar as possible to the DiscoverTable in a different plugin, and sorting doesn’t work without the inMemory='sorting' line. Why is this the case? Is there something I am missing that causes sorting to work?

Configuration:

Relevant Logs or Screenshots: