sort and then straight forward