#13 Fix getCompleteMetadata by sort and filter