implements comparable interface in NumberValue

Doing the NumberValue class implements the Comparable to sort it.