add int.test for advert sorting, closed #6