Fix for sorting columns