title: Firebase Data Desc Sorting in Android
body: <p>I am storing data in Firebase storage.</p>
  
  <p>Object <code>Comment</code> with attribute <code>timestamp</code>. When I push data from device to Firebase I'm populating <code>timestamp</code> with currentTime and store in <code>long</code> data type.</p>
  
  <p>When I do retrieving the data with <code>firebaseRef.orderByChild("timestamp").limitToLast(15)</code> result is not sorting how I expected.</p>
  
  <p>I even played around with rules and no result:</p>
  
  <pre><code>{
      "rules": {
          ".read": true,
          ".write": true,
          ".indexOn": "streetrate",
          "streetrate": {
            ".indexOn": ".value"
          }
      }
  }
  </code></pre>
  
  <p>I tried store <code>timestamp</code> in <code>String</code> data type, same issue.</p>