Update core.js

Adding reload sort to specify when the sort menu should be reloaded