Definition of sorting attributes inside header - isn't usefull at all.
column which iterates data could be sort-able only..
how should we know about what the column you need to be sorted with sort attributes defined in general header??
Header for the concrete column should be sort contol. Or if you can't use this - use external sorting. Example at our livedemo.