keep output sorted by query id