Changes for ng-table and sorting .....