What I want to do is to sort the data already grouped in alphabetical order or custom order. I used the sortField
attribute wich specify the groupheader order but I need to order the data inside the group too.
相关问题
- Angular RxJS mergeMap types
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- How to update placeholder text in ng2-smart-table?
- How to instantiate Http service in main.ts manuall
- Angular: ngc or tsc?
相关文章
- angular脚手架在ie9+下兼容问题
- angular 前端项目 build 报错 "Cannot find module 'le
- Angular Material Stepper causes mat-formfield to v
- After upgrade to Angular 9 cannot find variable in
- is there any difference between import { Observabl
- Suppress “Circular dependency detected” suppress w
- How can you get current positional information abo
- Angular material table not showing data
I have the same issues. I have added customized sort to solve this issues
To add a customized sort
In the typescript create a customSort
For those who have the problem with TurboTable
<p-table>
, here is the solution:OnSort()
implementation:customSort()
implementation:I was facing the same issue.I have used custom sorting.Below is the code:
In Template:
Below is the sortByColor function in typescript:
This is working for me.Hope this will work in your case also.