Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Jul 27, 2023
1 parent 6c3f779 commit 681bb3b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,9 @@ private static AuthRecipeUserInfo[] listPrimaryUsersByPhoneNumberHelper(Start st
List<AuthRecipeUserInfo> result = getPrimaryUserInfoForUserIds(start, con, tenantIdentifier.toAppIdentifier(),
userIds);

// this is going to order them based on oldest that joined to newest that joined.
result.sort(Comparator.comparingLong(o -> o.timeJoined));

return result.toArray(new AuthRecipeUserInfo[0]);
}

Expand Down

0 comments on commit 681bb3b

Please sign in to comment.