More generic sorting
Sort columns