<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Andreas.<br>
    </p>
    <p>Note that the order of features in attributes table does not
      seems to reflect the source order.</p>
    <p>After sorting your dataset with sortbyexpression, try to add a
      auto-incremental field and open this new output in attribute
      table.</p>
    <p>Sort this attribute table by the new auto-incremental field. If
      the order is good, it is not a sortbyexpression issue, but an
      attribute table issue.</p>
    <p>Regards<br>
    </p>
    <pre class="moz-signature" cols="72">Arnaud Morvan
Ingénieur logiciel
Tél: +33 (0)4 58 48 20 32

Camptocamp France SAS
18 rue du Lac Saint André
Savoie Technolac - Bâtiment Le Dauphin
F-73370 Le Bourget du Lac
<a class="moz-txt-link-freetext" href="http://www.camptocamp.com">http://www.camptocamp.com</a></pre>
    <div class="moz-cite-prefix">Le 21/11/2020 à 17:23, Bernd
      Vogelgesang a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:44e2c343-2972-139b-0350-fbdc826c07fb@gmx.de">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Hi Andreas,</p>
      <p>have a look at my last years issue on this</p>
      <p><a class="moz-txt-link-freetext"
          href="https://github.com/qgis/QGIS/issues/29794"
          moz-do-not-send="true">https://github.com/qgis/QGIS/issues/29794</a></p>
      <p>maybe it's the same</p>
      <p>Cheers,</p>
      <p>Bernd<br>
      </p>
      <div class="moz-cite-prefix">On 19.11.20 14:16, Andreas Neumann
        wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:CAB2Z92ACETO=dDwmJA4BH14dQsryu3iDLMv1Kj6ZzKZX1BsZnQ@mail.gmail.com">
        <pre class="moz-quote-pre" wrap="">Hi,

I have a model where at the very end before adding it to the project I was
trying to sort the result with an expression.

But: the sorting doesn't work. In the help there is the cryptic hint at
<a class="moz-txt-link-freetext" href="https://docs.qgis.org/3.10/de/docs/user_manual/processing_algs/qgis/vectorgeneral.html#qgisorderbyexpression" moz-do-not-send="true">https://docs.qgis.org/3.10/de/docs/user_manual/processing_algs/qgis/vectorgeneral.html#qgisorderbyexpression</a>
that "Be careful, it might not work as expected with some providers, the
order might not be kept every time."

Does someone know more about it? Which providers specifically do not
support sorting?

Does this statement apply to the reading provider or the writing provider?

In my case, I never got any correct sorting ...

Thanks,
Andreas

--
Andreas Neumann
QGIS.ORG board member (treasurer)

</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org" moz-do-not-send="true">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
    </blockquote>
  </body>
</html>