You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • The actual code for loading widgets is:

    (function() {
      global.WIDGETS={};
      require("Storage").list(/\.wid\.js$/).fo­rEach(widget=>{try { eval(require("Storage").read(widget)); } catch (e) {print(widget,e);}}); 
      var W = WIDGETS;
      WIDGETS = {};
      Object.keys(W).sort((a,b)=>(0|W[b].sorto­rder)-(0|W[a].sortorder)).forEach(k=>WID­GETS[k]=W[k]);
    })
    

    So it should work just to have what you're doing... You could check the WIDGETS object and make sure everything is in the order you want and has sortorder set right?

About

Avatar for Gordon @Gordon started