diff --git a/files/classes/user.py b/files/classes/user.py index 2391c8026..42b4fb0ab 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -176,7 +176,7 @@ class User(Base): authorizations = relationship("ClientAuth", back_populates="user") apps = relationship("OauthApp", back_populates="author") awards = relationship("AwardRelationship", primaryjoin="User.id==AwardRelationship.user_id", back_populates="user") - referrals = relationship("User", primaryjoin="User.id==User.referred_by") + referrals = relationship("User", primaryjoin="User.id==User.referred_by", order_by="User.created_utc") designed_hats = relationship("HatDef", primaryjoin="User.id==HatDef.author_id", back_populates="author") owned_hats = relationship("Hat", back_populates="owners") hats_equipped = relationship("Hat", lazy="raise", viewonly=True) diff --git a/files/templates/settings/personal.html b/files/templates/settings/personal.html index 890a641f7..70410b8b9 100644 --- a/files/templates/settings/personal.html +++ b/files/templates/settings/personal.html @@ -308,6 +308,21 @@
{% include "user_in_table.html" %} | ++ |