merging src/renderer/gl/tools/objectsorter.js