Roo/bootstrap/Table.js
authorEdward <edward@roojs.com>
Thu, 10 Jul 2014 05:11:36 +0000 (13:11 +0800)
committerEdward <edward@roojs.com>
Thu, 10 Jul 2014 05:11:36 +0000 (13:11 +0800)
Roo/bootstrap/Table.js

index 07d1988..823c7cd 100644 (file)
@@ -205,6 +205,13 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
         
     },
     
+    sort : function()
+    {
+        this.store.sortInfo = {field:'created_dt',direction:'DESC'};
+        
+        this.store.load();
+    },
+    
     renderHeader : function()
     {
         var header = {