search keyword sort

This commit is contained in:
zhujun24 2015-09-02 20:50:18 +08:00
parent 4a61592ff6
commit 7d95c56fcf

View File

@ -11,7 +11,9 @@ $(function () {
var Select = antd.Select;
var Option = Select.Option;
// 获取搜索数据
var searchData = window.ANT_COMPONENTS;
var searchData = window.ANT_COMPONENTS.sort(function(a, b){
return a.title.localeCompare(b.title);
});
var AutoComplete = React.createClass({
getOptions() {