X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/Sorter.html diff --git a/docs/source/Sorter.html b/docs/source/Sorter.html index fdfa7f26..161e8120 100644 --- a/docs/source/Sorter.html +++ b/docs/source/Sorter.html @@ -1,30 +1,47 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @class Ext.util.Sorter
* @extends Object
* Represents a single sorter that can be applied to a Store
*/
Ext.define('Ext.util.Sorter', {
- /**
+ /**
* @cfg {String} property The property to sort by. Required unless {@link #sorter} is provided
*/
- /**
+ /**
* @cfg {Function} sorterFn A specific sorter function to execute. Can be passed instead of {@link #property}
*/
- /**
+ /**
* @cfg {String} root Optional root property. This is mostly useful when sorting a Store, in which case we set the
* root to 'data' to make the filter pull the {@link #property} out of the data object of each item
*/
- /**
+ /**
* @cfg {Function} transform A function that will be run on each value before
* it is compared in the sorter. The function will receive a single argument,
* the value.
*/
- /**
+ /**
* @cfg {String} direction The direction to sort by. Defaults to ASC
*/
direction: "ASC",
@@ -43,7 +60,7 @@ Ext.define('Ext.util.Sorter', {
me.updateSortFunction();
},
- /**
+ /**
* @private
* Creates and returns a function which sorts an array by the given property and direction
* @return {Function} A function which sorts by the property/direction combination provided
@@ -61,7 +78,7 @@ Ext.define('Ext.util.Sorter', {
};
},
- /**
+ /**
* @private
* Basic default sorter function that just compares the defined property of each object
*/
@@ -79,7 +96,7 @@ Ext.define('Ext.util.Sorter', {
return v1 > v2 ? 1 : (v1 < v2 ? -1 : 0);
},
- /**
+ /**
* @private
* Returns the root property of the given item, based on the configured {@link #root} property
* @param {Object} item The item
@@ -106,4 +123,6 @@ Ext.define('Ext.util.Sorter', {
var me = this;
me.sort = me.createSortFunction(me.sorterFn || me.defaultSorterFn);
}
-});
\ No newline at end of file
+});
+
+