Sorted inventory methods to a util class