added test for ordering 1000 tables