new version
added better sort functionality to item index