display with lexicographic order on j and theta