private List<View> sort() {
Map<Name, View> map = new HashMap<Name, View>();
Graph<Name> dependencies = Graphs.newInstance();
for (View view : added) {
Name name = view.ast.name;
map.put(name, view);
for (Name dependTo : view.ast.getDependencies()) {
dependencies.addEdge(name, dependTo);
}
}