Add ordering to values