Correct distance marker ordering

Attention all mergers! 

This PR *needs* to be fixed too! It uses underscore.js which isn't currently in the pipeline.

Fix bug with incorrect ordering of distance markers. Problem introduced by back-end suddenly ordering correctly.