Table pulling in data and ordering working