test for tabs by sorting