Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Issue with sorter #41

Closed
DotFivePin opened this issue Dec 28, 2017 · 7 comments
Closed

Issue with sorter #41

DotFivePin opened this issue Dec 28, 2017 · 7 comments
Labels

Comments

@DotFivePin
Copy link

DotFivePin commented Dec 28, 2017

I have a date coming back in Long form.
Like "1489069644" which is equal to "Thursday, March 9, 2017 2:27:24 PM" if converted.

When I sort on this, it gets stuck and is constantly trying to sort and resort in random orders.

I am using this sort in other places, but never had an issue like this before. Do you know why its behaving this way?

These images were captured seconds apart. Its just constantly changing. (I am converting them when displaying) '{{note?.timestamp * 1000 | date:'MM/dd/yyyy hh:mm a'}}'

image

image

@VadimDez
Copy link
Owner

Could you provide array that you're trying to sort?

@DotFivePin
Copy link
Author

DotFivePin commented Dec 28, 2017

This is how its coming back to me. Is this what you meant?
{
"notes":[
{
"timestamp":1489002240,
"message":"message here",
"user":"57ea"
},
{
"timestamp":1489068169,
"message":"message here",
"user":"57ea"
},
{
"timestamp":1489068388,
"message":"message here",
"user":"57ea"
},
{
"timestamp":1489069644,
"message":"message here",
"user":"57ea"
},
{
"timestamp":1489084233,
"message":"message here",
"user":"57ea"
},
{
"timestamp":1489155705,
"message":"message here",
"user":"57ea"
},
{
"timestamp":1489155718,
"message":"message here",
"user":"57ea"
},
{
"timestamp":1489164617,
"message":"message here",
"user":"57ea"
},
{
"timestamp":1489411959,
"message":"message here",
"user":"57ea"
},
{
"timestamp":1489412001,
"message":"message here",
"user":"57ea"
},
{
"timestamp":1489415015,
"message":"message here",
"user":"57ea"
}
]
}

@DotFivePin
Copy link
Author

It almost seems as if it doesn't sort properly for me if there are a lot of entries in the array. If that makes sense.

I have an identical array that only has 4 things in it, and that one sorts fine.

@DotFivePin
Copy link
Author

Update?

@VadimDez
Copy link
Owner

i've tried to reproduce your issue. but i couldn't get the same behaviour you get.
Could you check whether you're doing some modifications on those items, so that it forces to re-order everything again?

@VadimDez
Copy link
Owner

@DotFivePin Could you try this issue with 2.0.0? Do you still have this problem?

@stale
Copy link

stale bot commented Jul 31, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 31, 2020
@stale stale bot closed this as completed Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants