related-items sorting fix