Fix for issue #30

When paging through the tmp_countries table, unstable ordering was causing some rows to be skipped.