You need to sign in to do that
Don't have an account?

Sorting technique for email template
can any one help on this ..
HI,
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.
Prepare a list of Date and Add values one by one of the date that you are receiving from the query. Then perform sort method on the Prepared Date List. then now take a for loop using this date list and prapare another list of Records to add and match the Exact date values with for Loop values.
Means you need to use temprary creat a list and do the further process on the result recieved.
I am not using any controller . I am writing code in Visualforce Email Template itself , here how can i take list in it..
you have written that you are taking data from database then if is SFDC data..then you should to use Controlller class.
Here i am posting my code
<td><apex:outputText value=" {!opp.Points_Transaction_Date__c}" style="Sort-BY:Ascending"> </apex:outputText></td> This field i have to sort can u help me ..
If u have any code can u post it may help me alot
if i use controller i am unble to get id ..
I worte controller --> component --> Visualforce Template also but it is not working atall.