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.
Merge remote-tracking branch 'rmx/issue-2966-stable-sort-not-stable' into dev
WebGLRenderer: ids need to be sorted in reverse.
Updated builds.
Merge remote-tracking branch 'origin/dev' into dev