Sorting in place added to sync script