function lightSortFunc(a, b) {
    if (b.castShadow && !a.castShadow) {
        return true;
    }
}
Dispose self, clear all the scene objects
But resources of gl like texuture, shader will not be disposed.
Mostly you should use disposeScene method in Renderer to do dispose.