Added resequencing of itemsx