Scroll and sort or retricve indexing order

Hi there,
I need a fast search that gives me a big number of sorted result items. Currently I'm using scroll function or scroll/scan function and sort them outside es (order by timestamp). But here I can not solve the right order for docs with same timestamp.
I tried to use scroll function without scan mode but the response is sorted only partially and not at all.

Here my query
String query = "{"constant_score": {"filter": {"and": [{"terms": {"termname": ["value"]}}]}}},"sort":{"timestamp":{"order":"asc"}}"

SearchRequestBuilder requestBuilder = client.getClient().prepareSearch(index)
.setScroll(new TimeValue(timeval))
.setQuery(query);

I want sorting done inside of es to solve the problem with data with same timestamp. What would be the best aproach?

Thanks for replaying