Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Folder (MailBox) default sorting order

Status
Not open for further replies.

rcloutie

Programmer
May 26, 2005
164
CA
Hi there,

I've built a Delphi app which lists the MailBox content
(that is, using method Find: '(MAIL) AND (BOX_TYPE = INCOMING)' and same thing for the SentItems: '(MAIL) AND (BOX_TYPE = OUTGOING)')

All is working great except one thing: messages are not listed according to the sorting order defined in GroupWise. The sorting order used seems to be CreationDate ASC while I would like to have it CreationDate DESC (the more recent messages followed by the older ones).

I could extract all messages to an array and then sort the array but if the user have 3 months archive, all messages need to be scan before returning results...

Is there a way to select a Sort field before looping through messages (something like a Sort method: 'ORDER BY CREATION_DATE DESC'?

Thanks a lot for reading,

Rej Cloutier


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top