Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / src / data / SortTypes.js
index 0f52038..6e1484b 100644 (file)
@@ -1,3 +1,17 @@
+/*
+
+This file is part of Ext JS 4
+
+Copyright (c) 2011 Sencha Inc
+
+Contact:  http://www.sencha.com/contact
+
+GNU General Public License Usage
+This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file.  Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
+
+If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
+
+*/
 /**
  * @class Ext.data.SortTypes
  * This class defines a series of static methods that are used on a
@@ -47,8 +61,8 @@ Ext.define('Ext.data.SortTypes', {
     
     /**
      * Default sort that does nothing
-     * @param {Mixed} s The value being converted
-     * @return {Mixed} The comparison value
+     * @param {Object} s The value being converted
+     * @return {Object} The comparison value
      */
     none : function(s) {
         return s;
@@ -63,7 +77,7 @@ Ext.define('Ext.data.SortTypes', {
 
     /**
      * Strips all HTML tags to sort on text only
-     * @param {Mixed} s The value being converted
+     * @param {Object} s The value being converted
      * @return {String} The comparison value
      */
     asText : function(s) {
@@ -72,7 +86,7 @@ Ext.define('Ext.data.SortTypes', {
 
     /**
      * Strips all HTML tags to sort on text only - Case insensitive
-     * @param {Mixed} s The value being converted
+     * @param {Object} s The value being converted
      * @return {String} The comparison value
      */
     asUCText : function(s) {
@@ -81,7 +95,7 @@ Ext.define('Ext.data.SortTypes', {
 
     /**
      * Case insensitive string
-     * @param {Mixed} s The value being converted
+     * @param {Object} s The value being converted
      * @return {String} The comparison value
      */
     asUCString : function(s) {
@@ -90,7 +104,7 @@ Ext.define('Ext.data.SortTypes', {
 
     /**
      * Date sorting
-     * @param {Mixed} s The value being converted
+     * @param {Object} s The value being converted
      * @return {Number} The comparison value
      */
     asDate : function(s) {
@@ -105,8 +119,8 @@ Ext.define('Ext.data.SortTypes', {
 
     /**
      * Float sorting
-     * @param {Mixed} s The value being converted
-     * @return {Float} The comparison value
+     * @param {Object} s The value being converted
+     * @return {Number} The comparison value
      */
     asFloat : function(s) {
         var val = parseFloat(String(s).replace(/,/g, ""));
@@ -115,11 +129,11 @@ Ext.define('Ext.data.SortTypes', {
 
     /**
      * Integer sorting
-     * @param {Mixed} s The value being converted
+     * @param {Object} s The value being converted
      * @return {Number} The comparison value
      */
     asInt : function(s) {
         var val = parseInt(String(s).replace(/,/g, ""), 10);
         return isNaN(val) ? 0 : val;
     }
-});
\ No newline at end of file
+});