Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / src / util / Grouper.js
diff --git a/src/util/Grouper.js b/src/util/Grouper.js
new file mode 100644 (file)
index 0000000..d846300
--- /dev/null
@@ -0,0 +1,22 @@
+/**
+ * @class Ext.util.Grouper
+ * @extends Ext.util.Sorter
+ */
+Ext.define('Ext.util.Grouper', {
+
+    /* Begin Definitions */
+
+    extend: 'Ext.util.Sorter',
+
+    /* End Definitions */
+
+    /**
+     * Function description
+     * @param {Ext.data.Model} instance The Model instance
+     * @return {String} The group string for this model
+     */
+    getGroupString: function(instance) {
+        return instance.get(this.property);
+    }
+});
\ No newline at end of file