public RefWriter(Map<String, Ref> refs) {if (refs instanceof RefMap)this.refs = refs.values();elsethis.refs = RefComparator.sort(refs.values());}

public RefWriter(IDictionary<string, Ref> refs){if (refs is RefMap){this.refs = refs.Values;}else{this.refs = RefComparator.Sort(refs.Values);}}
