// json
{
"data": [
{
"name": "山鹰登山社",
"school": "北京大学",
"count": "3298",
"isA":false
},
{
"name": "O2氧气动漫社",
"school": "北京语言大学",
"count": "1233",
"isA":true
},
{
"name": "么么哒社团",
"school": "北京旅游大学",
"count": "2098",
"isA":true
},
]
}
// html
<section id="app">
<ul class="rank-list">
<li v-for=" item in data">
<strong>{{$index + 1}}.</strong>
<span class="name">{{item.name}}</span>
<span class="school">{{item.school}}</span>
<div class="heart" v-bind:class="{curr:item.isA}">
<span class="count">{{item.count}}</span>
</div>
</li>
</ul>
</section>
如上是一段json数据,在列表渲染的时候怎样按照count的大小排序显示呢
http://cn.vuejs.org/api/#orderBy