I am trying to sort records and I encountered the below markup in a Visualforce Page:
<apex:commandLink action="{!ViewData}" value="Phone{!IF(sortExpression=='Phone',IF(sortDirection='ASC','?','?'),'')}">
<apex:param value="Phone" name="column" assignTo="{!sortExpression}" >
</apex:param>
</apex:commandLink>
Here I know the use of <apex:param>
, but I do not understand the IF
function. Why is it being used in this way?