Sorting log data by specific key

Hello there. I faced with the same problem as described here Documents order in Elasticsearch after processing with filebeat/logstash.

Several log lines can be created at the same second, so their order can be incorrect. There was an advice if previous topic - to use offset as secondary sorting key, but i don't understand where to set the sorting key? Only in kibana?
I'd like sorting by offset to be constant without need to select it every time in kibana. How to achieve that? Thank you.