added sorting ability to link columns