fixed node sorting

closes #71
snapshot restore