sort leafs in homepage