diff --git a/static/js/embed.js b/static/js/embed.js
index a199b578c0256d3cfa093855dabc49a0dbdaf0d2..28d23a073e167218655c93901be837dbebd17510 100644
--- a/static/js/embed.js
+++ b/static/js/embed.js
@@ -22,7 +22,11 @@ BusMap.Embed = function(opts) {
     var populateOptions = function() {
         var stops = window._busmap.stops;
         stops = Object.keys(stops).map(function(i){return stops[i]});
-        stops.sort(function(a,b){ return a.title > b.title; });
+        stops = stops.sort(function(a,b){
+            if (a.title > b.title) return 1;
+            else if (a.title < b.title) return -1;
+            return 0;
+        });
         for (id in stops) {
             var s = stops[id];
             var opt = $('<option value="' + s.id + '">' + s.title + '</option>');