title: List in local working fine but in server works inverse
body: <p>I'm converting a queryset in a list, like this:</p>
  
  <pre><code>qs = CreditoPredio.objects.filter(predio_id=self.kwargs['predio_id'])
  id_list = list(qs.values_list('id', flat=True))
  position = id_list.index(int(self.kwargs['pk']))
  </code></pre>
  
  <p>For example the list is: <code>[1,2,3,4]</code> <br/>
  And if I print position in local works fine, id 1 is position 0, 2 is position 2 and so on. But when I upload this to Heroku, the list is inversed, 4 is the position 0 and 1 is the last position. Why? Any clue about how can i fix it?</p>