test: sort to make result set stable