Simplified parameter passing to orderBy method