updated remote sorting and added a test for automatic creation of an id attribute for objects if one does not exist