search improvement fixed for chrome

parent 3bf623a2
......@@ -460,7 +460,13 @@ dashboardControllers.controller('AddPictoCtrl', function (
// Order by expression length
$scope.pictos.sort(function(a, b){
return a.expressions[0].text.length > b.expressions[0].text.length;
var val = 0;
if(a.expressions[0].text.length > b.expressions[0].text.length){
val = 1;
}else if(a.expressions[0].text.length < b.expressions[0].text.length){
val = -1;
}
return val;
});
// No data warning
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment