Fixing orderBy not working.