title: How to sort a redis hash by values in keys
body: <p>is there a good way in redis to get keys in a hash sorted by values? I've looked at the documentation and haven't found a straightforward way. </p>
  
  <p>Also could someone please explain how sorting is achieved in redis, and what <a href="http://redis.io/commands/SORT#using-hashes-in-codebycode-and-codegetcode" rel="noreferrer">this documentation</a> is trying to say? </p>
  
  <p>I have a very simple hash structure which is something like this: </p>
  
  <p>"salaries" - "employee_1"  - "salary_amount"</p>
  
  <p>I'd appreciate a detailed explanation.</p>