Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 角度智能表格st排序工作不正常显示错误顺序_Angularjs_Sorting_Smart Table - Fatal编程技术网

Angularjs 角度智能表格st排序工作不正常显示错误顺序

Angularjs 角度智能表格st排序工作不正常显示错误顺序,angularjs,sorting,smart-table,Angularjs,Sorting,Smart Table,我在使用智能表对数据进行排序时遇到问题,特别是在包含土耳其字符时。生成错误的订单 在我的控制器中: $scope.rowCollection = [{ a: 'Çanakkale', b: '3' }, { a: 'Ceyhan', b: '2' }, { a: 'ĞĞĞĞĞ', b: '4' }, { a: 'Ankara', b: '1' }, { a: 'Zonguldak', b: '5'

我在使用智能表对数据进行排序时遇到问题,特别是在包含土耳其字符时。生成错误的订单

在我的控制器中:

$scope.rowCollection = [{
    a: 'Çanakkale',
    b: '3'
  }, {
    a: 'Ceyhan',
    b: '2'
  }, {
    a: 'ĞĞĞĞĞ',
    b: '4'
  }, {
    a: 'Ankara',
    b: '1'
  }, {
    a: 'Zonguldak',
    b: '5'
  }];

$scope.displayedCollection = [].concat($scope.rowCollection);
和我的html:

<tr ng-repeat="row in displayedCollection">
  <td ng-repeat="col in columns">{{row[col]}}</td>
</tr>

{{row[col]}
下面是一个例子:

我怎样才能修好它


谢谢你的帮助这是我为你找到的:

  • plunk中的智能表格版本缺少某些部分(第164行),这些部分不允许您做自己想做的事情。我已经在我的plunk中将其更改为2.1.8版
  • 在表上使用
    st set sort=“yourFilterName”
    ,其中
    st table
    属性为:

  • 这是我为您找到的:

  • plunk中的智能表格版本缺少某些部分(第164行),这些部分不允许您做自己想做的事情。我已经在我的plunk中将其更改为2.1.8版
  • 在表上使用
    st set sort=“yourFilterName”
    ,其中
    st table
    属性为:

  • 请告诉我我的解决方案是否对您有帮助。谢谢我在@flow3r下面添加了其他要求。请告诉我我的解决方案是否对您有帮助。谢谢我在@flow3r下面添加了其他要求,感谢您的支持。你的帮助部分奏效了,但我的一些问题仍在继续。。。如何使用int、date、currency(不标识每列)和filter-formatted-date等其他属性类型进行排序。。新的Plunk链接感谢您的支持。你的帮助部分奏效了,但我的一些问题仍在继续。。。如何使用int、date、currency(不标识每列)和filter-formatted-date等其他属性类型进行排序。。新Plunk链接