Not stable order for sorting

When we apply term aggregation and sort by min aggregation the result is
not stable.
Sort by values going great, but objects with the same values ​​do not have
a permanent position.
Example - we change the number of objects while objects with a value of 20
and 30 begin to behave strangely:

1: 10
2: 20
3: 20
4: 30
6: 30

and

1: 10
3: 20
2: 20
6: 30
5: 30
4: 30
7: 40
8: 40
9: 40
10: 40

Index isolated (ie, it does not get the new data). Can we prevent such
situations?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c57b254c-0026-44c3-88a6-856291be18a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.