better inventory sorting