Query options in Word

Hi all,

When I define query options in a merge document (sorting on a mergefield)
Word doesn't perform it when I do the mailmerge from my D5 app. If I do the
mailmerge in Word itself, everything works fine.
What am I doing wrong or should I do something extra in my app?