Added sort function in inventory. All blank items in the list are currently moved to the end. It is currently sorting by item.id(), but it can be easily changed to sort by another parameter.