Fix associations import to work with differences between strcmp and how Postgres orders data