+ Start a Discussion

Sorting technique for email template


can any one help on this ..


I have stuck in one small issue

that is i wrote visualforce email template in it data is taken directly from database with out any sorting format . 


Now i want to sort it and display it , i want to sort date field.


Why not sort it when you query?