title: Caml Query- Order By- SharePoint 2013-CSOM
body: <p>I am new to caml query and have been struggling for this.
  I need the last modified List Item. Only one Item.
  That means it should be orderby 'modified' and rowlimit should be 1.</p>
  
  <p>But only rowlimit part of my query is working. Not the orderby part.</p>
  
  <p>This is my Query : </p>
  
  <pre><code>        var camlQuery = new SP.CamlQuery();
  
          camlQuery.set_viewXml('&lt;View&gt;&lt;Query&gt;&lt;OrderBy&gt;&lt;FieldRef Name=\'Modified\' Ascending="FALSE"/&gt;&lt;/OrderBy&gt;&lt;RowLimit&gt;1&lt;/RowLimit&gt;&lt;/Query&gt;&lt;/View&gt;";')
  </code></pre>
  
  <p>I dont know where I am going wrong.
  I even tried removing the Query tags in the above mentioned query. </p>
  
  <p>The query is working, its getting only one record. orderby isnt working i believe. </p>
  
  <p>This is in jQuery. I have written in a function and am calling that function in my Ready function. </p>
  
  <p>Please help me.</p>
  
  <p>Thanks.</p>