<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi,<div><br></div><div>1. I&#39;m making a vector layer with WFS protocol. I would like to get sorted features by field &quot;inserted&quot;  in desc order.</div>
<div><br></div><div>I see that there is a &lt;ogc:SortBy&gt; element in OGC specs. but I can&#39;t figure out how to do this.</div><div><br></div><div>My example, it works fine, it gets all the right stuff but sortBy does not work.<br clear="all">
<br></div><div><div><font face="&#39;courier new&#39;, monospace">var poi = new OpenLayers.Layer.Vector(&quot;tweets&quot;, {</font></div><div><span style="white-space: pre; "><font face="&#39;courier new&#39;, monospace">                        </font></span></div>
<div><span style="white-space: pre; "><font face="&#39;courier new&#39;, monospace">                        </font></span><font face="&#39;courier new&#39;, monospace">strategies: [</font></div><div><span style="white-space: pre; "><font face="&#39;courier new&#39;, monospace">                                </font></span><font face="&#39;courier new&#39;, monospace">new OpenLayers.Strategy.Cluster()</font></div>
<div><span style="white-space: pre; "><font face="&#39;courier new&#39;, monospace">                                </font></span><font face="&#39;courier new&#39;, monospace">,new OpenLayers.Strategy.BBOX()</font></div><div><span style="white-space: pre; "><font face="&#39;courier new&#39;, monospace">                        </font></span><font face="&#39;courier new&#39;, monospace">],</font></div>
<div><font face="&#39;courier new&#39;, monospace">                     protocol: new OpenLayers.Protocol.WFS({</font></div><div><font face="&#39;courier new&#39;, monospace">                        version: &quot;1.1.0&quot;,</font></div>
<div><font face="&#39;courier new&#39;, monospace">                        url:  host + service, </font></div><div><font face="&#39;courier new&#39;, monospace">                        featureType: &quot;twitter_cache&quot;,</font></div>
<div><font face="&#39;courier new&#39;, monospace">                        featureNS: &quot;<a href="http://zegt.nu" target="_blank" style="color: rgb(66, 99, 171); ">http://zegt.nu</a>&quot;,</font></div><div><span style="white-space: pre; "><font face="&#39;courier new&#39;, monospace">                        </font></span><b><font face="&#39;courier new&#39;, monospace">sortBy: &quot;inserted&quot;</font></b></div>
<div><span style="white-space: pre; "><font face="&#39;courier new&#39;, monospace">                        </font></span></div><div><font face="&#39;courier new&#39;, monospace">                     })</font></div><div><font face="&#39;courier new&#39;, monospace">                     ,projection: new OpenLayers.Projection(&quot;EPSG:4326&quot;)</font></div>
<div><span style="white-space: pre; "><font face="&#39;courier new&#39;, monospace">                </font></span><font face="&#39;courier new&#39;, monospace">     ,styleMap: pointMap</font><span style="white-space: pre; "><font face="&#39;courier new&#39;, monospace">                </font></span><font face="&#39;courier new&#39;, monospace">     </font></div>
<div><font face="&#39;courier new&#39;, monospace">                });</font></div></div><div><br></div><div>2. how to gain more control over <font class="Apple-style-span" face="&#39;courier new&#39;, monospace">wfs:Query</font>, <span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace; ">wfs:PropertyName and ogc:Filter</span></div>
<div><br></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&lt;wfs:Query typeName=&quot;topp:states&quot;&gt;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    <b>&lt;wfs:PropertyName&gt;topp:STATE_NAME&lt;/wfs:PropertyName&gt;</b></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><b>    &lt;wfs:PropertyName&gt;topp:PERSONS&lt;/wfs:PropertyName&gt;</b></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    &lt;<b>ogc:Filter</b>&gt;</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">      (...)</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">   &lt;/ogc:Filter&gt;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  &lt;/wfs:Query&gt;</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&lt;/wfs:GetFeature&gt;</font></div></div><div><br></div><div><br></div><div><br></div><div>-- <br>salut<br>#wolktm</div></span>