* fix unnecessary notifications * move equality function * sort by id * use same comparison for initial and later queries