Dealing with table order