title: Sorting Elasticsearch Results After Scoring
body: <p>I have a query like the one above. I am trying to sort it by created_at date in descending order AFTER the results are scored meaning that the sorting has no effect on what is returned only the order. </p>
  
  <p>When I use the sort array, it effects the results returned. How do I remedy this? Thank you!!!  </p>
  
  <pre><code> array:3 [▼
       "index" =&gt; "quotes"
       "type" =&gt; "quote"
    "body" =&gt; array:5 [▼
      "from" =&gt; 0
      "size" =&gt; 50
      "min_score" =&gt; 0
      "query" =&gt; array:1 [▼
        "function_score" =&gt; array:1 [▼
          "query" =&gt; array:1 [▼
            "bool" =&gt; array:4 [▼
              "filter" =&gt; array:1 [▼
                0 =&gt; array:1 [▼
                  "term" =&gt; array:1 [▼
                    "value_proposition" =&gt; "encouraging"
                  ]
                ]
              ]
              "must_not" =&gt; array:3 [▼
                0 =&gt; array:1 [▼
                  0 =&gt; array:1 [▼
                    "term" =&gt; array:1 [▼
                      "explicit" =&gt; "1"
                    ]
                  ]
                ]
                1 =&gt; array:1 [▼
                  0 =&gt; array:1 [▼
                    "term" =&gt; array:1 [▼
                      "explicit" =&gt; "1"
                    ]
                  ]
                ]
                2 =&gt; array:1 [▼
                  0 =&gt; array:1 [▼
                    "term" =&gt; array:1 [▼
                      "value_duration" =&gt; "ephemeral"
                    ]
                  ]
                ]
              ]
              "must" =&gt; []
              "should" =&gt; array:18 [▶]
            ]
          ]
        ]
      ]
      "sort" =&gt; []
    ]
  ]
  </code></pre>