Restore sort order in update method. fixes #18