title: fetching newest conversation from message archive openfire using smack
body: <p>Hello guys, I'm using these lines of code to fetch list of conversation using smack</p>
  
  <pre><code>@Override
  protected Void doInBackground(String... strings) {
  
      final ArrayList&lt;UsersData&gt; users 
          = UsersManager.getInstance().getUsers();
  
      int count = 0;
      while(count &lt; users.size()) {
  
          try {
              Thread.sleep(500);
              final String jid 
                  = users.get(count).getUserJID();
  
              IQ iq = new IQ() {
  
                  @Override
                  public String getChildElementXML() {
                      String list = "&lt;list xmlns='urn:xmpp:archive'"+
                              "with='"+jid+"'&gt;"+
                              "&lt;set xmlns='http://jabber.org/protocol/rsm'&gt;"+
                              "&lt;max&gt;30&lt;/max&gt;&lt;/set&gt;&lt;/list&gt;";
                      return list;
                  }
              };
  
              iq.setType(IQ.Type.GET);
              iq.setPacketID(jid+System.currentTimeMillis());
  
              service.getXmppConnection().sendPacket(iq);
              Log.v("XmppAsyncHistory", "IQ List sent!");
  
          } catch (InterruptedException e) {
              e.printStackTrace();
          }
  
          count++;
      }
  
      return null;
  }
  </code></pre>
  
  <p>I've added my iq provider.</p>
  
  <pre><code>        provider.addIQProvider("list", "urn:xmpp:archive", new ListIQProvider());
  </code></pre>
  
  <p>And I get this stanza for reply.</p>
  
  <pre><code>D/SMACK(11130): 10:34:30 PM RCV  (1096010080): 
  &lt;iq type="result" 
  id="24@suitmedia1375112070174" 
  to="17@suitmedia/Smack"&gt;&lt;list xmlns="urn:xmpp:archive"&gt;
  chat with="24@suitmedia" 
   start="2013-07-25T09:57:04.121Z"/&gt;
  &lt;chat with="24@suitmedia"  
   start="2013-07-25T11:08:28.997Z"/&gt;
  &lt;chat with="24@suitmedia" 
   start="2013-07-29T09:29:18.295Z"/&gt;
  &lt;chat with="24@suitmedia" 
   start="2013-07-29T07:47:29.841Z"/&gt;
  &lt;set  xmlns="http://jabber.org/protocol/rsm"&gt;
  &lt;first index="0"&gt;184&lt;/first&gt;&lt;last&gt;216&lt;/last&gt;
  &lt;count&gt;4&lt;/count&gt;&lt;/set&gt;&lt;/list&gt;&lt;/iq&gt;
  </code></pre>
  
  <p>As you can see, it returns not the newest conversation, instead the oldest one from 25/07 to 29/07 respectively</p>
  
  <p>What I want to ask is what do these tags means? 184216
  And how can I get conversation list order by recent time?</p>
  
  <p>Thank you!</p>