Added 'order by' to pivot
Clarified some comments