1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 16:52:25 +01:00

revert removal of comparator function in getSortedMarks(), the issue remains

This commit is contained in:
Doug Kearns
2008-08-20 10:56:42 +00:00
parent 1ee3590156
commit 0f260b7da4

View File

@@ -1451,14 +1451,20 @@ liberator.Marks = function () //{{{
lmarks.push([mark, localMarks[mark][i]]);
}
}
lmarks.sort();
// URL marks
var umarks = [];
// FIXME: why does umarks.sort() cause a "Component is not available =
// NS_ERROR_NOT_AVAILABLE" exception when used here?
for (var mark in urlMarks)
umarks.push([mark, urlMarks[mark]]);
umarks.sort();
umarks.sort(function (a, b) {
return a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : 0;
});
return lmarks.concat(umarks);
}