relay: fix ordering of users in TreeSet