fixed orderBy bug