Fix item sorting issue #37.