Update: move sort from search to register in node_module.js