sorting rewritten. highlight of sorted column added