Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Sorting is not working #29

Open
commaender opened this issue Jan 26, 2018 · 1 comment
Open

Sorting is not working #29

commaender opened this issue Jan 26, 2018 · 1 comment

Comments

@commaender
Copy link

On my system the call history is sorted in a wrong order! It is completely out of order, call from yesterday, today, 3 days ago, yesterday, and so on.

Setup: FritzBox 7390 with current firmware, German language...

I changed the sortHistory function, now it works for me:

sortHistory: function() {
	var history = this.callHistory;
	
	//Sort history by time
	history.sort(function(a, b) {
		return new Date(b.time) - new Date(a.time);
	});

	this.callHistory = history;
},
@PieBa
Copy link

PieBa commented Dec 30, 2019

I had the same issue. This fix worked for me. Thanks!

What about a Pull Request?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants