Skip to content

Proper way to sort data #84

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
OpticNectar opened this issue Jul 3, 2018 · 2 comments
Closed

Proper way to sort data #84

OpticNectar opened this issue Jul 3, 2018 · 2 comments

Comments

@OpticNectar
Copy link

I have paginated data coming in from the server and I need to be able to sort the data. I have the sorts working properly on the server side, but obviously this package sorts by Id automatically so it ignores any sorting. Is there a way you recommend or know of that will all the data to be sorted or is this just a huge flaw in this package?

@MikaStark
Copy link

Up

@OpticNectar
Copy link
Author

I'd be willing to throw some money towards this fix if someone could add it into the main package or make a fork that sorts based on the server or has a way to sort.

pablorsk added a commit that referenced this issue Aug 12, 2018
pablorsk added a commit that referenced this issue Aug 12, 2018
Version 1.1.0 🎆 

* Feature: collections has `data` member now. `data` is an array, and the requested information is kept in order.  Closes #84. Closes #54.
* Feature: trackBy added on collection. Optimize use of ngFor.
* Deprecated: callback functions deprecated on get(), all(), detele() and save().

And...

* Demo: demo-collection-info component added. Show info about received collection.
* tslint: array<> to [] on types
* version 1.1.0 bump
* Readme updated: sort and trackby added
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants