VadimDez / ngx-order-pipe

▼ Angular 5+ orderBy pipe
https://vadimdez.github.io/ngx-order-pipe/
MIT License
243 stars 57 forks source link

Order issue on load more items. #38

Closed dgpoo closed 6 years ago

dgpoo commented 6 years ago

I am loading 30 items and i can sort it fine. But if i am loading more 30 items into existance data without page reload then merged new data and old data should sort. how i can re-init sort without page reload ?

VadimDez commented 6 years ago

What version of ngx-order-pipe are you using?

dgpoo commented 6 years ago

it is "ng2-order-pipe": "^0.1.5",

dgpoo commented 6 years ago

@VadimDez Now i have updated to "ngx-order-pipe": "^1.1.1",

VadimDez commented 6 years ago

let me know if the latest version of ngx-order-pipe fixes your problem, so that i can close this issue.

dgpoo commented 6 years ago

@VadimDez no still getting same issue

VadimDez commented 6 years ago

can you show me your code?

dgpoo commented 6 years ago

listing.zip

i have uploaded above zip file please check it

dgpoo commented 6 years ago

@VadimDez there much line of code in that check from below line code it may help to find out html file line no : 736 line no : 660

ts file line no : 610 line no : 403

VadimDez commented 6 years ago

Have you completely replaced ng2-order-pipe with ngx-order-pipe? Imported OrderModule module? Pushing to the array you are sorting in the view should actually work (tried myself).

dgpoo commented 6 years ago

Awsome it is working now,it is working now!! please answer me on this issue which i updated last one how can i use compartor using example then this plugin works perfect for me https://github.com/VadimDez/ngx-order-pipe/issues/34