compare selected objects with objects obtained from server by value instead of by reference