Fix for ribboned table legend sorting