Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / docs / output / Ext.data.SortTypes.js
1 Ext.data.JsonP.Ext_data_SortTypes({
2   "allMixins": [
3
4   ],
5   "deprecated": null,
6   "docauthor": "Evan Trimboli <evan@sencha.com>",
7   "members": {
8     "cfg": [
9
10     ],
11     "method": [
12       {
13         "deprecated": null,
14         "alias": null,
15         "protected": false,
16         "tagname": "method",
17         "href": "Base3.html#Ext-Base-method-addStatics",
18         "shortDoc": "Add / override static properties of this class. ...",
19         "static": true,
20         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
21         "private": false,
22         "params": [
23           {
24             "type": "Object",
25             "optional": false,
26             "doc": "\n",
27             "name": "members"
28           }
29         ],
30         "name": "addStatics",
31         "owner": "Ext.Base",
32         "doc": "<p>Add / override static properties of this class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.addStatics({\n    someProperty: 'someValue',      // My.cool.Class.someProperty = 'someValue'\n    method1: function() { ... },    // My.cool.Class.method1 = function() { ... };\n    method2: function() { ... }     // My.cool.Class.method2 = function() { ... };\n});\n</code></pre>\n",
33         "linenr": 388,
34         "return": {
35           "type": "Ext.Base",
36           "doc": "<p>this</p>\n"
37         },
38         "html_filename": "Base3.html"
39       },
40       {
41         "deprecated": null,
42         "alias": null,
43         "protected": false,
44         "tagname": "method",
45         "href": "SortTypes.html#Ext-data-SortTypes-method-asDate",
46         "shortDoc": "Date sorting ...",
47         "static": false,
48         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
49         "private": false,
50         "params": [
51           {
52             "type": "Mixed",
53             "optional": false,
54             "doc": "<p>The value being converted</p>\n",
55             "name": "s"
56           }
57         ],
58         "name": "asDate",
59         "owner": "Ext.data.SortTypes",
60         "doc": "<p>Date sorting</p>\n",
61         "linenr": 91,
62         "return": {
63           "type": "Number",
64           "doc": "<p>The comparison value</p>\n"
65         },
66         "html_filename": "SortTypes.html"
67       },
68       {
69         "deprecated": null,
70         "alias": null,
71         "protected": false,
72         "tagname": "method",
73         "href": "SortTypes.html#Ext-data-SortTypes-method-asFloat",
74         "shortDoc": "Float sorting ...",
75         "static": false,
76         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
77         "private": false,
78         "params": [
79           {
80             "type": "Mixed",
81             "optional": false,
82             "doc": "<p>The value being converted</p>\n",
83             "name": "s"
84           }
85         ],
86         "name": "asFloat",
87         "owner": "Ext.data.SortTypes",
88         "doc": "<p>Float sorting</p>\n",
89         "linenr": 106,
90         "return": {
91           "type": "Float",
92           "doc": "<p>The comparison value</p>\n"
93         },
94         "html_filename": "SortTypes.html"
95       },
96       {
97         "deprecated": null,
98         "alias": null,
99         "protected": false,
100         "tagname": "method",
101         "href": "SortTypes.html#Ext-data-SortTypes-method-asInt",
102         "shortDoc": "Integer sorting ...",
103         "static": false,
104         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
105         "private": false,
106         "params": [
107           {
108             "type": "Mixed",
109             "optional": false,
110             "doc": "<p>The value being converted</p>\n",
111             "name": "s"
112           }
113         ],
114         "name": "asInt",
115         "owner": "Ext.data.SortTypes",
116         "doc": "<p>Integer sorting</p>\n",
117         "linenr": 116,
118         "return": {
119           "type": "Number",
120           "doc": "<p>The comparison value</p>\n"
121         },
122         "html_filename": "SortTypes.html"
123       },
124       {
125         "deprecated": null,
126         "alias": null,
127         "protected": false,
128         "tagname": "method",
129         "href": "SortTypes.html#Ext-data-SortTypes-method-asText",
130         "shortDoc": "Strips all HTML tags to sort on text only ...",
131         "static": false,
132         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
133         "private": false,
134         "params": [
135           {
136             "type": "Mixed",
137             "optional": false,
138             "doc": "<p>The value being converted</p>\n",
139             "name": "s"
140           }
141         ],
142         "name": "asText",
143         "owner": "Ext.data.SortTypes",
144         "doc": "<p>Strips all HTML tags to sort on text only</p>\n",
145         "linenr": 64,
146         "return": {
147           "type": "String",
148           "doc": "<p>The comparison value</p>\n"
149         },
150         "html_filename": "SortTypes.html"
151       },
152       {
153         "deprecated": null,
154         "alias": null,
155         "protected": false,
156         "tagname": "method",
157         "href": "SortTypes.html#Ext-data-SortTypes-method-asUCString",
158         "shortDoc": "Case insensitive string ...",
159         "static": false,
160         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
161         "private": false,
162         "params": [
163           {
164             "type": "Mixed",
165             "optional": false,
166             "doc": "<p>The value being converted</p>\n",
167             "name": "s"
168           }
169         ],
170         "name": "asUCString",
171         "owner": "Ext.data.SortTypes",
172         "doc": "<p>Case insensitive string</p>\n",
173         "linenr": 82,
174         "return": {
175           "type": "String",
176           "doc": "<p>The comparison value</p>\n"
177         },
178         "html_filename": "SortTypes.html"
179       },
180       {
181         "deprecated": null,
182         "alias": null,
183         "protected": false,
184         "tagname": "method",
185         "href": "SortTypes.html#Ext-data-SortTypes-method-asUCText",
186         "shortDoc": "Strips all HTML tags to sort on text only - Case insensitive ...",
187         "static": false,
188         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
189         "private": false,
190         "params": [
191           {
192             "type": "Mixed",
193             "optional": false,
194             "doc": "<p>The value being converted</p>\n",
195             "name": "s"
196           }
197         ],
198         "name": "asUCText",
199         "owner": "Ext.data.SortTypes",
200         "doc": "<p>Strips all HTML tags to sort on text only - Case insensitive</p>\n",
201         "linenr": 73,
202         "return": {
203           "type": "String",
204           "doc": "<p>The comparison value</p>\n"
205         },
206         "html_filename": "SortTypes.html"
207       },
208       {
209         "deprecated": null,
210         "alias": null,
211         "protected": false,
212         "tagname": "method",
213         "href": "Base3.html#Ext-Base-method-callOverridden",
214         "shortDoc": "Call the original method that was previously overridden with Ext.Base.override\n\nExt.define('My.Cat', {\n    constructo...",
215         "static": false,
216         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
217         "private": false,
218         "params": [
219           {
220             "type": "Array/Arguments",
221             "optional": false,
222             "doc": "<p>The arguments, either an array or the <code>arguments</code> object</p>\n",
223             "name": "args"
224           }
225         ],
226         "name": "callOverridden",
227         "owner": "Ext.Base",
228         "doc": "<p>Call the original method that was previously overridden with <a href=\"#/api/Ext.Base-method-override\" rel=\"Ext.Base-method-override\" class=\"docClass\">Ext.Base.override</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n\n        return this;\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        var instance = this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n\n        return instance;\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n</code></pre>\n",
229         "linenr": 269,
230         "return": {
231           "type": "Mixed",
232           "doc": "<p>Returns the result after calling the overridden method</p>\n"
233         },
234         "html_filename": "Base3.html"
235       },
236       {
237         "deprecated": null,
238         "alias": null,
239         "protected": true,
240         "tagname": "method",
241         "href": "Base3.html#Ext-Base-method-callParent",
242         "shortDoc": "Call the parent's overridden method. ...",
243         "static": false,
244         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
245         "private": false,
246         "params": [
247           {
248             "type": "Array/Arguments",
249             "optional": false,
250             "doc": "<p>The arguments, either an array or the <code>arguments</code> object\nfrom the current method, for example: <code>this.callParent(arguments)</code></p>\n",
251             "name": "args"
252           }
253         ],
254         "name": "callParent",
255         "owner": "Ext.Base",
256         "doc": "<p>Call the parent's overridden method. For example:</p>\n\n<pre><code>Ext.define('My.own.A', {\n    constructor: function(test) {\n        alert(test);\n    }\n});\n\nExt.define('My.own.B', {\n    extend: 'My.own.A',\n\n    constructor: function(test) {\n        alert(test);\n\n        this.callParent([test + 1]);\n    }\n});\n\nExt.define('My.own.C', {\n    extend: 'My.own.B',\n\n    constructor: function() {\n        alert(\"Going to call parent's overriden constructor...\");\n\n        this.callParent(arguments);\n    }\n});\n\nvar a = new My.own.A(1); // alerts '1'\nvar b = new My.own.B(1); // alerts '1', then alerts '2'\nvar c = new My.own.C(2); // alerts \"Going to call parent's overriden constructor...\"\n                         // alerts '2', then alerts '3'\n</code></pre>\n",
257         "linenr": 124,
258         "return": {
259           "type": "Mixed",
260           "doc": "<p>Returns the result from the superclass' method</p>\n"
261         },
262         "html_filename": "Base3.html"
263       },
264       {
265         "deprecated": null,
266         "alias": null,
267         "protected": false,
268         "tagname": "method",
269         "href": "Base3.html#Ext-Base-method-create",
270         "shortDoc": "Create a new instance of this Class. ...",
271         "static": true,
272         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
273         "private": false,
274         "params": [
275
276         ],
277         "name": "create",
278         "owner": "Ext.Base",
279         "doc": "<p>Create a new instance of this Class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.create({\n    someConfig: true\n});\n</code></pre>\n\n<p>All parameters are passed to the constructor of the class.</p>\n",
280         "linenr": 329,
281         "return": {
282           "type": "Object",
283           "doc": "<p>the created instance.</p>\n"
284         },
285         "html_filename": "Base3.html"
286       },
287       {
288         "deprecated": null,
289         "alias": null,
290         "protected": false,
291         "tagname": "method",
292         "href": "Base3.html#Ext-Base-method-createAlias",
293         "shortDoc": "Create aliases for existing prototype methods. ...",
294         "static": true,
295         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
296         "private": false,
297         "params": [
298           {
299             "type": "String/Object",
300             "optional": false,
301             "doc": "<p>The new method name, or an object to set multiple aliases. See\n<a href=\"#/api/Ext.Function-method-flexSetter\" rel=\"Ext.Function-method-flexSetter\" class=\"docClass\">flexSetter</a></p>\n",
302             "name": "alias"
303           },
304           {
305             "type": "String/Object",
306             "optional": false,
307             "doc": "<p>The original method name</p>\n",
308             "name": "origin"
309           }
310         ],
311         "name": "createAlias",
312         "owner": "Ext.Base",
313         "doc": "<p>Create aliases for existing prototype methods. Example:</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    method1: function() { ... },\n    method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n    method3: 'method1',\n    method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -&gt; test.method1()\n</code></pre>\n",
314         "linenr": 648,
315         "return": {
316           "type": "void",
317           "doc": "\n"
318         },
319         "html_filename": "Base3.html"
320       },
321       {
322         "deprecated": null,
323         "alias": null,
324         "protected": false,
325         "tagname": "method",
326         "href": "Base3.html#Ext-Base-method-getName",
327         "shortDoc": "Get the current class' name in string format. ...",
328         "static": false,
329         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
330         "private": false,
331         "params": [
332
333         ],
334         "name": "getName",
335         "owner": "Ext.Base",
336         "doc": "<p>Get the current class' name in string format.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    constructor: function() {\n        alert(this.self.getName()); // alerts 'My.cool.Class'\n    }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n</code></pre>\n",
337         "linenr": 631,
338         "return": {
339           "type": "String",
340           "doc": "<p>className</p>\n"
341         },
342         "html_filename": "Base3.html"
343       },
344       {
345         "deprecated": null,
346         "alias": null,
347         "protected": false,
348         "tagname": "method",
349         "href": "Base3.html#Ext-Base-method-implement",
350         "shortDoc": "Add methods / properties to the prototype of this class. ...",
351         "static": true,
352         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
353         "private": false,
354         "params": [
355           {
356             "type": "Object",
357             "optional": false,
358             "doc": "\n",
359             "name": "members"
360           }
361         ],
362         "name": "implement",
363         "owner": "Ext.Base",
364         "doc": "<p>Add methods / properties to the prototype of this class.</p>\n\n<pre><code>Ext.define('My.awesome.Cat', {\n    constructor: function() {\n        ...\n    }\n});\n\n My.awesome.Cat.implement({\n     meow: function() {\n        alert('Meowww...');\n     }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n</code></pre>\n",
365         "linenr": 415,
366         "return": {
367           "type": "void",
368           "doc": "\n"
369         },
370         "html_filename": "Base3.html"
371       },
372       {
373         "deprecated": null,
374         "alias": null,
375         "protected": true,
376         "tagname": "method",
377         "href": "Base3.html#Ext-Base-method-initConfig",
378         "shortDoc": "Initialize configuration for this class. ...",
379         "static": false,
380         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
381         "private": false,
382         "params": [
383           {
384             "type": "Object",
385             "optional": false,
386             "doc": "\n",
387             "name": "config"
388           }
389         ],
390         "name": "initConfig",
391         "owner": "Ext.Base",
392         "doc": "<p>Initialize configuration for this class. a typical example:</p>\n\n<pre><code>Ext.define('My.awesome.Class', {\n    // The default config\n    config: {\n        name: 'Awesome',\n        isAwesome: true\n    },\n\n    constructor: function(config) {\n        this.initConfig(config);\n\n        return this;\n    }\n});\n\nvar awesome = new My.awesome.Class({\n    name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n</code></pre>\n",
393         "linenr": 63,
394         "return": {
395           "type": "Object",
396           "doc": "<p>mixins The mixin prototypes as key - value pairs</p>\n"
397         },
398         "html_filename": "Base3.html"
399       },
400       {
401         "deprecated": null,
402         "alias": null,
403         "protected": false,
404         "tagname": "method",
405         "href": "SortTypes.html#Ext-data-SortTypes-method-none",
406         "shortDoc": "Default sort that does nothing ...",
407         "static": false,
408         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
409         "private": false,
410         "params": [
411           {
412             "type": "Mixed",
413             "optional": false,
414             "doc": "<p>The value being converted</p>\n",
415             "name": "s"
416           }
417         ],
418         "name": "none",
419         "owner": "Ext.data.SortTypes",
420         "doc": "<p>Default sort that does nothing</p>\n",
421         "linenr": 48,
422         "return": {
423           "type": "Mixed",
424           "doc": "<p>The comparison value</p>\n"
425         },
426         "html_filename": "SortTypes.html"
427       },
428       {
429         "deprecated": null,
430         "alias": null,
431         "protected": false,
432         "tagname": "method",
433         "href": "Base3.html#Ext-Base-method-override",
434         "shortDoc": "Override prototype members of this class. ...",
435         "static": true,
436         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
437         "private": false,
438         "params": [
439           {
440             "type": "Object",
441             "optional": false,
442             "doc": "\n",
443             "name": "members"
444           }
445         ],
446         "name": "override",
447         "owner": "Ext.Base",
448         "doc": "<p>Override prototype members of this class. Overridden methods can be invoked via\n<a href=\"#/api/Ext.Base-method-callOverridden\" rel=\"Ext.Base-method-callOverridden\" class=\"docClass\">Ext.Base.callOverridden</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n\n        return this;\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        var instance = this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n\n        return instance;\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n</code></pre>\n",
449         "linenr": 518,
450         "return": {
451           "type": "Ext.Base",
452           "doc": "<p>this</p>\n"
453         },
454         "html_filename": "Base3.html"
455       },
456       {
457         "deprecated": null,
458         "alias": null,
459         "protected": true,
460         "tagname": "method",
461         "href": "Base3.html#Ext-Base-method-statics",
462         "shortDoc": "Get the reference to the class from which this object was instantiated. ...",
463         "static": false,
464         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
465         "private": false,
466         "params": [
467
468         ],
469         "name": "statics",
470         "owner": "Ext.Base",
471         "doc": "<p>Get the reference to the class from which this object was instantiated. Note that unlike <a href=\"#/api/Ext.Base-property-self\" rel=\"Ext.Base-property-self\" class=\"docClass\">Ext.Base.self</a>,\n<code>this.statics()</code> is scope-independent and it always returns the class from which it was called, regardless of what\n<code>this</code> points to during run-time</p>\n\n<pre><code>Ext.define('My.Cat', {\n    statics: {\n        totalCreated: 0,\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        var statics = this.statics();\n\n        alert(statics.speciesName);     // always equals to 'Cat' no matter what 'this' refers to\n                                        // equivalent to: My.Cat.speciesName\n\n        alert(this.self.speciesName);   // dependent on 'this'\n\n        statics.totalCreated++;\n\n        return this;\n    },\n\n    clone: function() {\n        var cloned = new this.self;                      // dependent on 'this'\n\n        cloned.groupName = this.statics().speciesName;   // equivalent to: My.Cat.speciesName\n\n        return cloned;\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n\n    statics: {\n        speciesName: 'Snow Leopard'     // My.SnowLeopard.speciesName = 'Snow Leopard'\n    },\n\n    constructor: function() {\n        this.callParent();\n    }\n});\n\nvar cat = new My.Cat();                 // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));         // alerts 'My.SnowLeopard'\nalert(clone.groupName);                 // alerts 'Cat'\n\nalert(My.Cat.totalCreated);             // alerts 3\n</code></pre>\n",
472         "linenr": 199,
473         "return": {
474           "type": "Class",
475           "doc": "\n"
476         },
477         "html_filename": "Base3.html"
478       }
479     ],
480     "property": [
481       {
482         "type": "Class",
483         "deprecated": null,
484         "alias": null,
485         "protected": true,
486         "tagname": "property",
487         "href": "Base3.html#Ext-Base-property-self",
488         "shortDoc": "Get the reference to the current class from which this object was instantiated. ...",
489         "static": false,
490         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
491         "private": false,
492         "name": "self",
493         "owner": "Ext.Base",
494         "doc": "<p>Get the reference to the current class from which this object was instantiated. Unlike <a href=\"#/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">Ext.Base.statics</a>,\n<code>this.self</code> is scope-dependent and it's meant to be used for dynamic inheritance. See <a href=\"#/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">Ext.Base.statics</a>\nfor a detailed comparison</p>\n\n<pre><code>Ext.define('My.Cat', {\n    statics: {\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        alert(this.self.speciesName); / dependent on 'this'\n\n        return this;\n    },\n\n    clone: function() {\n        return new this.self();\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n    statics: {\n        speciesName: 'Snow Leopard'         // My.SnowLeopard.speciesName = 'Snow Leopard'\n    }\n});\n\nvar cat = new My.Cat();                     // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard();     // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));             // alerts 'My.SnowLeopard'\n</code></pre>\n",
495         "linenr": 18,
496         "html_filename": "Base3.html"
497       },
498       {
499         "type": "RegExp",
500         "deprecated": null,
501         "alias": null,
502         "protected": false,
503         "tagname": "property",
504         "href": "SortTypes.html#Ext-data-SortTypes-property-stripTagsRE",
505         "static": false,
506         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
507         "private": false,
508         "name": "stripTagsRE",
509         "owner": "Ext.data.SortTypes",
510         "doc": "<p>The regular expression used to strip tags</p>\n",
511         "linenr": 57,
512         "html_filename": "SortTypes.html"
513       }
514     ],
515     "cssVar": [
516
517     ],
518     "cssMixin": [
519
520     ],
521     "event": [
522
523     ]
524   },
525   "singleton": true,
526   "alias": null,
527   "superclasses": [
528     "Ext.Base"
529   ],
530   "protected": false,
531   "tagname": "class",
532   "mixins": [
533
534   ],
535   "href": "SortTypes.html#Ext-data-SortTypes",
536   "subclasses": [
537
538   ],
539   "static": false,
540   "author": null,
541   "component": false,
542   "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
543   "private": false,
544   "alternateClassNames": [
545
546   ],
547   "name": "Ext.data.SortTypes",
548   "doc": "<p>This class defines a series of static methods that are used on a\n<a href=\"#/api/Ext.data.Field\" rel=\"Ext.data.Field\" class=\"docClass\">Ext.data.Field</a> for performing sorting. The methods cast the\nunderlying values into a data type that is appropriate for sorting on\nthat particular field.  If a <a href=\"#/api/Ext.data.Field-cfg-type\" rel=\"Ext.data.Field-cfg-type\" class=\"docClass\">Ext.data.Field.type</a> is specified,\nthe sortType will be set to a sane default if the sortType is not\nexplicitly defined on the field. The sortType will make any necessary\nmodifications to the value and return it.</p>\n\n<ul>\n<li><b>asText</b> - Removes any tags and converts the value to a string</li>\n<li><b>asUCText</b> - Removes any tags and converts the value to an uppercase string</li>\n<li><b>asUCText</b> - Converts the value to an uppercase string</li>\n<li><b>asDate</b> - Converts the value into Unix epoch time</li>\n<li><b>asFloat</b> - Converts the value to a floating point number</li>\n<li><b>asInt</b> - Converts the value to an integer number</li>\n</ul>\n\n\n<p>\nIt is also possible to create a custom sortType that can be used throughout\nan application.\n<pre><code>Ext.apply(Ext.data.SortTypes, {\n    asPerson: function(person){\n        // expects an object with a first and last name property\n        return person.lastName.toUpperCase() + person.firstName.toLowerCase();\n    }    \n});\n\nExt.define('Employee', {\n    extend: 'Ext.data.Model',\n    fields: [{\n        name: 'person',\n        sortType: 'asPerson'\n    }, {\n        name: 'salary',\n        type: 'float' // sortType set to asFloat\n    }]\n});\n</code></pre>\n</p>\n\n",
549   "mixedInto": [
550
551   ],
552   "linenr": 1,
553   "xtypes": [
554
555   ],
556   "html_filename": "SortTypes.html",
557   "extends": "Ext.Base"
558 });