corrected default query ordering for countyinmate and jailstay