angular-ui/ng-grid — pull request #1120 by mikeromano38 (2014-04-22 07:53:58+00:00)
Title: 2.0.8 - fix bug for programmatic change of sortInfo

This patch fixes a bug where when a user programmatically changed the sortInfo reference, the previously sorted column would maintain its sort arrow.

I found that this is due to an addition in 2.0.8 in the sortData method of the grid class. The else condition checks for an event. If the event is not present this block is never entered and the sort is not rendered properly. This is easily fixed by removing the check for the event, I could not see a use for the check for event ( I could be wrong ) :).

I've added tests to ensure the arrow renders only in the spot it is intended.