fixed sort headers in tables