use correct comparator when sorting asc
method for cleaning orphan contents