added sorting of columns