Sort getTables return data