Added TriVal ordering