一道hibernate面试题,求解?

在面试中遇到一道hibernate题目,没答出来,很郁闷 大家帮忙解决下
说是Set<User> User有一个age属性
怎么让User在内存中按照age排序?
xml里面可以配置sort但是只能对key进行排序 求解。。呵呵

<set name="user" inverse="true" cascade="all" order-by="age desc"> ...

内存中排序

collection-type=" java.util.SortedSet"
collection-type=" java.util.TreeSet"

好象是这么做, 再实现Comparable