Make results reversed the right way.
Make results reversed the right way.

I was mistaken on my last patch as it was reversing the slice, when it should
reverse the whole list (that is not the case in the lazy implementation).
This will make it work the right way by mimicking a reversed database query.

This is how it works:
  Lets say we have this result set:
    [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

  By doing a slice on result[0:2] would result in:
    [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
     ^-----^
    [0, 1, 2]

  The same slice on a that list, but reversed, would be:
    [9, 8, 7, 6, 5, 4, 3, 2, 1]
     ^-----^
    [9, 8, 7]

  What we have now is:
    start = len - end (in that case, 10 - 2 = 8)
    end = len - start (in that case, 10 - 0 = 10)
  The slice will be the following:
    [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
                          ^-----^
                         [7, 8, 9]
        After reversing: [9, 8, 7]

  Note that the result is the same as the example above, where the list were
  reversed before the slice. But as explained, this is a lazy implementation,
  so we cannot reverse the result as that would mean generate a list for it,
  and that's exactly what lazyobjectlist is trying to avoid.

r=romaia

stoq/kiwi