Sort Members by name instead of userid (Fixes #371) (#384)

Co-authored-by: Rebecca-Chou <beihaozhou@gmail.com>
Reviewed-on: #384
Reviewed-by: j285he <j285he@localhost>
Co-authored-by: Beihao Zhou <b72zhou@csclub.uwaterloo.ca>
Co-committed-by: Beihao Zhou <b72zhou@csclub.uwaterloo.ca>
renovate/eslint-8.x
Beihao Zhou 1 year ago
parent d11aa814ce
commit fdb6bb1ccf
  1. 4
      lib/members.ts

@ -39,7 +39,9 @@ export async function getMembers(
program: item.program === undefined ? "" : (item.program as string),
};
})
.sort((item1: Member, item2: Member) => item1.id.localeCompare(item2.id));
.sort((item1: Member, item2: Member) =>
item1.name.localeCompare(item2.name)
);
} finally {
await client.unbind();
}

Loading…
Cancel
Save