mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
Only re-render the streams list when the sort order has changed
(imported from commit 8122785097e2470e9e85f1f4c40bf1cd63264fa4)
This commit is contained in:
@@ -227,5 +227,18 @@ exports.strcmp = (function () {
|
||||
};
|
||||
}());
|
||||
|
||||
exports.array_compare = function util_array_compare(a, b) {
|
||||
if (a.length !== b.length) {
|
||||
return false;
|
||||
}
|
||||
var i;
|
||||
for (i = 0; i < a.length; ++i) {
|
||||
if (a[i] !== b[i]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
return exports;
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user