aces / brainbrowser

Web-based visualization tools for neurological data.
https://brainbrowser.cbrain.mcgill.ca/
GNU Affero General Public License v3.0
351 stars 122 forks source link

Fix #312, force the expected ordering of scans in volume viewer. #317

Closed rdvincent closed 7 years ago

rdvincent commented 7 years ago

This should fix the long-standing issue that the volume viewer ordering of volumes is non-deterministic.

The solution is to use "insertBefore()", where possible, to insert the div element of a new volume before a subsequent volume when appropriate. The change is fairly small