dict, lazy_set: Return an iterator from values method.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-02-02 23:51:09 -08:00
committed by Tim Abbott
parent 45d3be5449
commit 9e1343ff8a
12 changed files with 33 additions and 29 deletions

View File

@@ -55,7 +55,7 @@ exports.get_user_group_from_name = function (name) {
};
exports.get_realm_user_groups = function () {
return user_group_by_id_dict.values().sort(function (a, b) {
return [...user_group_by_id_dict.values()].sort(function (a, b) {
return a.id - b.id;
});
};