Integration tests: sort IDs of quotes to avoid unexpected behavior