changing objectsorter.js