Arrange the following as per the instruction given in the bracket:
N, Be, O, C (increasing order of non-metallic character)
Be < C < N < O