added test for sorting columns