|
@@ -187,7 +187,11 @@ MWF.xApplication.process.Xform.Log = MWF.APPLog = new Class(
|
|
|
return parseFloat(value1) - parseFloat(value2);
|
|
return parseFloat(value1) - parseFloat(value2);
|
|
|
}
|
|
}
|
|
|
} else if (!this.isNumber(value1) && !this.isNumber(value2)) {
|
|
} else if (!this.isNumber(value1) && !this.isNumber(value2)) {
|
|
|
- return Date.parse(a.fromTime) - Date.parse(b.fromTime);
|
|
|
|
|
|
|
+ if( this.json.sortTypeInCategory === "none" ){
|
|
|
|
|
+ return -1;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ return Date.parse(a.fromTime) - Date.parse(b.fromTime);
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
return this.isNumber(value1) ? -1 : 1;
|
|
return this.isNumber(value1) ? -1 : 1;
|
|
|
}
|
|
}
|
|
@@ -196,7 +200,11 @@ MWF.xApplication.process.Xform.Log = MWF.APPLog = new Class(
|
|
|
}else if( a.properties.fromOpinionGroup || b.properties.fromOpinionGroup ){
|
|
}else if( a.properties.fromOpinionGroup || b.properties.fromOpinionGroup ){
|
|
|
return a.properties.fromOpinionGroup ? -1 : 1;
|
|
return a.properties.fromOpinionGroup ? -1 : 1;
|
|
|
}else{
|
|
}else{
|
|
|
- return Date.parse(a.fromTime) - Date.parse(b.fromTime);
|
|
|
|
|
|
|
+ if( this.json.sortTypeInCategory === "none" ){
|
|
|
|
|
+ return -1;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ return Date.parse(a.fromTime) - Date.parse(b.fromTime);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}.bind(this))
|
|
}.bind(this))
|
|
|
}
|
|
}
|
|
@@ -794,7 +802,11 @@ MWF.xApplication.process.Xform.Log = MWF.APPLog = new Class(
|
|
|
return parseFloat(value1) - parseFloat(value2);
|
|
return parseFloat(value1) - parseFloat(value2);
|
|
|
}
|
|
}
|
|
|
} else if (!this.isNumber(value1) && !this.isNumber(value2)) {
|
|
} else if (!this.isNumber(value1) && !this.isNumber(value2)) {
|
|
|
- return Date.parse(a.fromTime) - Date.parse(b.fromTime);
|
|
|
|
|
|
|
+ if( this.json.sortTypeInCategory === "none" ){
|
|
|
|
|
+ return -1;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ return Date.parse(a.fromTime) - Date.parse(b.fromTime);
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
return this.isNumber(value1) ? -1 : 1;
|
|
return this.isNumber(value1) ? -1 : 1;
|
|
|
}
|
|
}
|
|
@@ -803,7 +815,11 @@ MWF.xApplication.process.Xform.Log = MWF.APPLog = new Class(
|
|
|
}else if( a.fromOpinionGroup || b.fromOpinionGroup ){
|
|
}else if( a.fromOpinionGroup || b.fromOpinionGroup ){
|
|
|
return a.fromOpinionGroup ? -1 : 1;
|
|
return a.fromOpinionGroup ? -1 : 1;
|
|
|
}else{
|
|
}else{
|
|
|
- return Date.parse(a.fromTime) - Date.parse(b.fromTime);
|
|
|
|
|
|
|
+ if( this.json.sortTypeInCategory === "none" ){
|
|
|
|
|
+ return -1;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ return Date.parse(a.fromTime) - Date.parse(b.fromTime);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}.bind(this))
|
|
}.bind(this))
|
|
|
}
|
|
}
|