dir.make_directory();
return;
}
-
-
-
+
this.projects = [];
var gdir = GLib.dir_open(this.dirname,0);
while (true) {
var fn = gdir.read_name();
if (!fn) {
gdir.close();
- return;
+ break;
}
if (!fn.match(/.json$/)) {
continue;
}
+ this.projects.sort(function(a,b) {
+ if (a.getName() == b.getName()) {
+ return 0;
+ }
+ return a.getName() > b.getName() ? 1 : -1;
+
+
+ });
+
+