modified item array, need to implement sorting in html