A functional approach to the stability of non-linear systems by use of the comparison theorem†