if it is just 4 numbers you could achieve it with a fairly simple string of conditions

if a < b and b < c and c < d etc