fix the ordering for inventory details