added orderBy functionalTest