add the sortByArraysSort() method