Added sorting to account and resource tables
Added query information to search results api