Added logic to sort players by recent attendance