Fix the renderList sort function to be truly stable

Multiple objects can have the same id. Using that id to compare the render
objects makes the sort function unstable. Use the webgl object's index in the
render list instead. That number is guaranteed to be unique.

This fixes #2966.
WebGLRenderer: ids need to be sorted in reverse.
Merge remote-tracking branch 'zz85/master' into dev