Justice (nyaya) is based on Order (vyavastha). If there is disorder or chaos all around then we cannot talk of Justice.
Order is based on Law (niyam). There has to be an underlying Law which explains the Order. If there is no underlying Law then Order cannot be envisaged.
Coexistence (sah-astitva) is the underlying Law of Existence (astitva). It is the foundation.
Orderliness in Existence is manifestation of this Law.
It is from the reference of Orderliness that we can discriminate between what is Right (vidhi) and what is Wrong (nishedh). Justice is the capability of discriminating between Right and Wrong, and then choosing to do what is Right. Human beings are united in Right and divided in Wrong. Mutual fulfillment (ubhaya trupti) in a human relationship (sambandh) is only when both sides are in the Right.
Realization (anubhav) is in Law.
Understanding (bodh) is of Order.
Work (karya) and Behaviour (vyavhar) is with Justice.