make sort method more consistent by linking it to orderBy