Sort order of "View surrounding documents" view

Hello,

I have a use case where I would like the "View Surrounding Documents" view to present the data in timestamp ascending order, rather than descending. If I go change this bit in the URL I get the view I'd like, but was hoping there was a configuration or some way to make this the default behavior.

sort:!(timestamp,desc) --> sort:!(timestamp,asc)

The main issue is the secondary sort that comes from the tie breaker config doesn't work properly unless my data is in ascending order. Being able to customize the tie breaker field secondary sort would also solve my problem, but those options seem even more limited.

The only work around I can think of is to go dig around in the source code and make this change myself.

Anyone have any other ideas, or have I overlooked anything obvious?

Thanks a bunch!

hi, that sounds like a feature-request: I would log it: https://github.com/elastic/kibana/issues/new/choose

As for digging in the source-code, this is probably a good entry-point: https://github.com/elastic/kibana/blob/15c0644c9756eb58e86cef7e7cd1ce8266bc7ed0/src/plugins/discover/public/application/angular/context/api/context.ts#L60

Thanks for the reply - I went ahead and filed this feature request: https://github.com/elastic/kibana/issues/66946

I expanded it to allow the user to select the field and sort order of that view, as I think that covers far more use cases than the one I'm facing.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.