sortcolumns method in the companies controller