implemented inventory sorting prior to rendering