Authored by microTT

品牌搜索排序优化

... ... @@ -506,8 +506,10 @@ define('yohood', function(require, exports) {
return brands;
}
sortBase = sortBase.toLowerCase();
for (i = 0, len = brands.length; i < len; i++) {
brandName = brands[i].name;
brandName = brands[i].name.toLowerCase();
if (brandName.indexOf(sortBase) === 0) {
brands = brands.splice(i, 1).concat(brands);
}
... ...