FIX: Fix order of recently connected devices. (#6517)

This commit is contained in:
Bianca Nenciu 2018-10-22 20:30:23 +03:00 committed by Régis Hanol
parent e9a971a2b6
commit 37fa7775f1
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ export default Ember.Controller.extend(
@computed("showAllAuthTokens", "model.user_auth_tokens")
authTokens(showAllAuthTokens, tokens) {
tokens.sort(
(a, b) => (a.is_active ? -1 : b.is_active ? 1 : a.seen_at < b.seen_at)
(a, b) => (a.is_active ? -1 : b.is_active ? 1 : b.seen_at.localeCompare(a.seen_at))
);
return showAllAuthTokens