Greg Mitchell <gmitchell@atdesk.com> writes:
> I don't understand why it re-sorts the data even though the indexes are in
> the same order?
I'm betting there's something wrong with your custom type definition,
such that the planner is failing to make any connection between the
index and the desired sort order. But you've not shown us any details.
regards, tom lane