Added tested sort after add, hopefully this will do the trick.

Signed-off-by: christian <okaychemicals@gmail.com>