More error checking on tab sort order

stopping a YSOD on tab imports