title: How to sort a hash in redis by its value
body: <p>I'm new to this redis, so please help me!
  I'm storing has values in redis by using this command, </p>
  
  <pre><code>client.hmset('top_trend', array[0], 0);
  client.expire('top_trend', 86400, redis.print);
  </code></pre>
  
  <p>and i'will increment the value "0" if i try to set same key again by using this command,</p>
  
  <pre><code>if(client.hexists('top_trend', array[0]) == true){
     client.hincrby('top_trend', array[0] , 1, redis.print);
  }
  </code></pre>
  
  <p>This will store my array of data in redis like, 
  eg: key = "top_trend"</p>
  
  <pre><code>"tamil"
  "0"
  "english"
  "0"
  "hindi"
  "0"
  </code></pre>
  
  <p>if tamil is already available for the key "top_trend" it will increment its value like this:</p>
  
  <pre><code>"tamil"
  "1"
  "english" (//if english is already 3 times available)
  "4"
  </code></pre>
  
  <p>Now i need to sort the values:
  in descending order and to get the values in sorted order in node js. How to achieve it.?? I tried sort key_value by object_*->object command like this. But it won't works. help me.</p>