Order nodes as presented in data
Remove old data