projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3904ea4
)
Roo/util/MixedCollection.js
author
edward
<edward@roojs.com>
Mon, 9 Nov 2015 07:58:05 +0000
(15:58 +0800)
committer
edward
<edward@roojs.com>
Mon, 9 Nov 2015 07:58:05 +0000
(15:58 +0800)
Roo/util/MixedCollection.js
patch
|
blob
|
history
diff --git
a/Roo/util/MixedCollection.js
b/Roo/util/MixedCollection.js
index
fab95e5
..
9caff01
100644
(file)
--- a/
Roo/util/MixedCollection.js
+++ b/
Roo/util/MixedCollection.js
@@
-387,6
+387,7
@@
mc.add(otherEl);
},
_sort : function(property, dir, fn){
+ Roo.log(property);
var dsc = String(dir).toUpperCase() == "DESC" ? -1 : 1;
fn = fn || function(a, b){
return a-b;
@@
-399,6
+400,8
@@
mc.add(otherEl);
c.sort(function(a, b){
Roo.log(a);
Roo.log(b);
+ Roo.log(a[property]);
+ Roo.log(b[property]);
var v = fn(a[property], b[property]) * dsc;
if(v == 0){
v = (a.index < b.index ? -1 : 1);