# Question about update sorting

**URL:** https://discuss.elastic.co/t/question-about-update-sorting/277002
**Category:** Elasticsearch
**Tags:** docker
**Created:** [June 25, 2021, 3:53am UTC](https://discuss.elastic.co/t/question-about-update-sorting/277002 "2021-06-25T03:53:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![111486](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111486/32/90809_2.png) [@111486](https://discuss.elastic.co/u/111486)
#### Post date: [June 25, 2021, 3:53am UTC](https://discuss.elastic.co/t/question-about-update-sorting/277002/1 "2021-06-25T03:53:34Z")

</div>

When updating the content, it was found that the updated content and the read content fields were not in the same order.

- version is:

```auto
// 20210625115137

{
  "name": "372aac1d4b15",
  "cluster_name": "tommy-es",
  "cluster_uuid": "aimcpcOURx6ObbTPPfE65A",
  "version": {
    "number": "7.9.2",
    "build_flavor": "default",
    "build_type": "docker",
    "build_hash": "d34da0ea4a966c4e49417f2da2f244e3e97b4e6e",
    "build_date": "2020-09-23T00:45:33.626720Z",
    "build_snapshot": false,
    "lucene_version": "8.6.2",
    "minimum_wire_compatibility_version": "6.8.0",
    "minimum_index_compatibility_version": "6.0.0-beta1"
  },
  "tagline": "You Know, for Search"
}

```

- update

```auto
POST idx_product/_update/644351684569
{
  "doc": {
    "bs_html_body": {
      "detail": [
        {
          "F": "234432414",
          "Fit": "432423",
          "TTT": "GDE53253245GCVXC",
          "Catefory": "GRTR543532FSFqr",
          "CFDG": "e54325wrwer",
          "C": "FS543253245DF"
        }
      ]
    }
  },
  "doc_as_upsert": false
}

```

The obtained structure is

```auto
 "detail" : [
              {
                "Fit" : "432423",
                "Catefory" : "GRTR543532FSFqr",
                "C" : "FS543253245DF",
                "TTT" : "GDE53253245GCVXC",
                "F" : "234432414",
                "CFDG" : "e54325wrwer"
              }
            ]

```

How to ensure that I update the data sequentially.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [June 25, 2021, 5:07am UTC](https://discuss.elastic.co/t/question-about-update-sorting/277002/2 "2021-06-25T05:07:32Z")

</div>

Not related to your question.

I edited your post to remove its public address.

Before answering to your question. It's very important that you don't leave your cluster open on internet.

Please read

> **[Securing Elasticsearch: How to prevent an Elasticsearch server breach](https://www.elastic.co/blog/how-to-prevent-elasticsearch-server-breach-securing-elasticsearch)**
>
> Read about how data breaches come about and how users can best protect against them in the context of Elasticsearch. Learn how to secure your Elasticsearch clusters, so your data isn't part of an Elasticsearch server breach

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 23, 2021, 5:07am UTC](https://discuss.elastic.co/t/question-about-update-sorting/277002/3 "2021-07-23T05:07:46Z")

</div>

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