order connections by id