moved gridSorter to a module