i am using ng-table inside a form.
<form role="form" name="frmCommand" class="formValidCommand" novalidate="novalidate" ng-submit="frmCommand.$valid && vm.saveCommandChanges()">
i have a clear sorting button on the table.
<button ng-click="storeCommandsTableParams.sorting({})" class="btn btn-default pull-right">Clear sorting</button>
clicking this button is calling vm.saveCommandChanges() instead of clearing the sort.
any suggestions please?