adding sortBy methode note