refactored people to sync method
added last updated person id method
added sorting of person ids
added sorting of person ids