problem with static sorting and dynamic sorting?

When I add Sorting and Dynamic Sort in aggregate, the Dynamic Sort is not working 

I want to sort by Email first, then user can click column (e.g Name, Contact...etc) to do dynamic sorting, when I open the in browser to test, the Sort is working, but the dynamic sorting is not work when I click Name column. Please help~

Thanks


Hi, 

The dynamics sort will affect omly lines where the email is the same, once it is the second attribute in the Order By. 

As probably all the emails are different, the dynamic attribute is never used in the ordering. 

What you want is to use the email as rhe default dynamic order. 

So, remove the fixed order and in the dynamic order expression function, replace the employee by the email as the second parameter. 

Cheers