fix for software table sort