Updated orderBy() method.