From d5024f9acbf67c9317d6728b86f5fff56746626e Mon Sep 17 00:00:00 2001
From: ff <863155629@qq.com>
Date: Mon, 19 May 2014 14:01:42 +0800
Subject: [PATCH] Update output-data-providers.md

Modified a bit, better?
---
 docs/guide/output-data-providers.md | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/docs/guide/output-data-providers.md b/docs/guide/output-data-providers.md
index b46576d..6f065ff 100644
--- a/docs/guide/output-data-providers.md
+++ b/docs/guide/output-data-providers.md
@@ -34,7 +34,13 @@ And the following example shows how to use ActiveDataProvider without ActiveReco
 $query = new Query();
 $provider = new ActiveDataProvider([
     'query' => $query->from('post'),
-    'sort'=>['defaultOrder'=>['name' => SORT_ASC,'created_at' => SORT_DESC]],
+    'sort' => [
+        // Set the default sort by name ASC and created_at DESC.
+        'defaultOrder' => [
+            'name' => SORT_ASC, 
+            'created_at' => SORT_DESC
+        ]
+    ],
     'pagination' => [
         'pageSize' => 20,
     ],
--
libgit2 0.27.1