Fixed sorting and searching issue on purchases and item movements