3536373839404142434445
if (rank == list.size()) { t.setSortOrder(list.size()); list.add(t); } else { t.setSortOrder(rank); Orderable prev = (Orderable) list.set(rank, t); if (prev != null) { reOrder(list, prev, rank + 1); } } }