- fixed sorting bugs in Query Activities view