Commit 1e04e49d authored by Sergey.Konovalov's avatar Sergey.Konovalov

Bug 19753 - Сортировка по дипазону, содержащему два и более столбцов, отрабатывает хаотично

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49008 954022d7-b5bf-4e40-9824-e11837661b57
parent 90e8155e
......@@ -7890,7 +7890,7 @@ Range.prototype.sort=function(nOption, nStartCol){
return ( ( str1 == str2 ) ? 0 : ( ( str1 > str2 ) ? 1 : -1 ) );
}
aSortElems.sort(function(a, b){
var res;
var res = 0;
if(null != a.text)
{
if(null != b.text)
......@@ -7905,10 +7905,11 @@ Range.prototype.sort=function(nOption, nStartCol){
else
res = -1;
}
if(bAscent)
return res;
else
return -res;
if(0 == res)
res = a.row - b.row;
else if(!bAscent)
res = -res;
return res;
});
//проверяем что это не пустая операция
var aSortData = new Array();
......
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 to comment