[polari] userList: Use case-insensitive sort function
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] userList: Use case-insensitive sort function
- Date: Sat, 5 Oct 2013 21:47:20 +0000 (UTC)
commit ad454ed420a6ac62ea4eb4e5caf895ada5ee99af
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Oct 5 23:18:03 2013 +0200
userList: Use case-insensitive sort function
Now that we finally display nicks using their actual case (cough, cough),
we need to adjust our sort function to not be case-sensitive.
https://bugzilla.gnome.org/show_bug.cgi?id=709439
src/userList.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/userList.js b/src/userList.js
index 7c442ef..5d8bcab 100644
--- a/src/userList.js
+++ b/src/userList.js
@@ -77,7 +77,7 @@ const UserList = new Lang.Class({
},
_sort: function(row1, row2) {
- return (row1._member.alias < row2._member.alias) ? -1 : 1;
+ return row1.user.alias.localeCompare(row2.user.alias);
},
_updateHeader: function(row, before) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]