inventory sorting and coloring