title: PostgreSQL String Comparison
body: <p>I would like to do a query to get all items with a string 'id' > a specified id. </p>
  
  <p>The query <code>select * from machine_thread where id &gt; 'znRb1c_3TPytk-JoPX19Qw'</code> returns an item with the id <code>zT4GabH3Qy2W6YIGh8Ku-w</code></p>
  
  <p>In the other languages i am using (python, javascript) a string comparison will show that 
  <code>'znRb1c_3TPytk-JoPX19Qw'</code>  is greater than <code>'zT4GabH3Qy2W6YIGh8Ku-w'</code>. What is postgresql doing differently, and is there anyway I can use the same comparison across all environments for comparing string IDs?</p>