Sort filemetadatas before checking differences; remove deleted draft version from ds obj before re-index