Added support for reversed add iterating

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>
Merge pull request #502 from bergerkiller/master

Added inversed adding for inventory add