added a sortby on league