projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dd6beb
)
Fixed window sorting
author
Jack Allnutt
<m2ys4u@Gmail.com>
Mon, 7 Nov 2011 11:00:28 +0000
(11:00 +0000)
committer
Jack Allnutt
<m2ys4u@Gmail.com>
Mon, 7 Nov 2011 11:00:28 +0000
(11:00 +0000)
client/js/front.js
patch
|
blob
|
blame
|
history
diff --git
a/client/js/front.js
b/client/js/front.js
index 703eec8d08a7b586aabadbd755c4f37cee7af8e4..9e1d833f3b82884db8f147e5b7fe599ba7f21249 100644
(file)
--- a/
client/js/front.js
+++ b/
client/js/front.js
@@
-470,12
+470,12
@@
kiwi.front = {
console.log(Tabview.getServerTab().tab);
listitems.sort(function (a, b) {
console.log(a);
- if (a == Tabview.getServerTab().tab) {
- return 1;
- }
- if (b == Tabview.getServerTab().tab) {
+ if (a == Tabview.getServerTab().tab[0]) {
return -1;
}
+ if (b == Tabview.getServerTab().tab[0]) {
+ return 1;
+ }
var compA = $(a).text().toUpperCase();
var compB = $(b).text().toUpperCase();
return (compA < compB) ? -1 : (compA > compB) ? 1 : 0;