ui-grid angularjs checkbox button not being resorted

Problem

grid angularjs i have a checkbox column after i check one column and sort with other column example age the active column is not being resorted this is a plunkr of the pbm

"http://plnkr.co/edit/Q3Fs3XiRBpqkzKdZlGXW?p=preview"

<!doctype html>
Problem courtesy of: Taha Amine Zeghbib

Solution

You have a problem with your cell template. You are not binding the value isActive to the checkbox.

Change the checkbox column to this

{ name: 'isActive', displayName: 'Active', type: 'boolean',cellTemplate: '<input type="checkbox" ng-model="row.entity.isActive">'}

This plnkr works right. http://plnkr.co/edit/PL7HvK1FY2ycuOrBbBTA?p=preview

Solution courtesy of: Kathir

Discussion

There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.