$.unique not giving unique results in chrome

$.unique not giving unique results in chrome

I have the following function that parses a text file and is supposed to return unique results.  It works in IE and Firefox, but not quite in chrome. Also I thought unique sorted values, and I assumed this would be an alphabetical sort.  I get different sort orders in in all three browsers, and none is alphabetical. Any insight would be appreciated. 

  1. var getDb = function(select){
  2. //get database names from inputQueryExamples
  3. $.get('inputQueryExamples.txt',
  4. function(data){
  5. var string = data;
  6. var dbDynamo ='';
  7. dbExp = new RegExp('(DATABASE:.*)','gm');
  8. dbDynamo = string.match(dbExp);
  9. dbDynamo = dbDynamo.map(function(el){return el.replace('DATABASE:','');});
  10. $.unique(dbDynamo);
  11. console.log(dbDynamo);
  12. var options = '';
  13. for(i=0; i<dbDynamo.length; i++){
  14. options += '<option value="' + dbDynamo[i] + '">' + dbDynamo[i] + '</option>';
  15. };
  16. $(select).append(options);
  17. });
  18. };

Here is the text file I am reading:

  1. QUERY:1
  2. DATABASE:geoquery
  3. NL:What are the capitals of the states that border the most populated states?
  4. SQL:something
  5. DR:
  6. root(ROOT-0, What-1)
  7. cop(What-1, are-2)
  8. det(capitals-4, the-3)
  9. nsubj(What-1, capitals-4)
  10. det(states-7, the-6)
  11. prep_of(capitals-4, states-7)
  12. nsubj(border-9, states-7)
  13. rcmod(states-7, border-9)
  14. det(states-13, the-10)
  15. advmod(populated-12, most-11)
  16. amod(states-13, populated-12)
  17. dobj(border-9, states-13)

  18. QUERY:2
  19. DATABASE:geoquery
  20. NL:What are the capitals of the states bordering New York?
  21. SQL:SELECT state.Capital FROM state JOIN borderinfo ON state.State_Name = borderinfo.State_Name WHERE borderinfo.Border = 'New York'
  22. DR:
  23. root(ROOT-0, What-1)
  24. cop(What-1, are-2)
  25. det(capitals-4, the-3)
  26. nsubj(What-1, capitals-4)
  27. det(states-7, the-6)
  28. prep_of(capitals-4, states-7)
  29. partmod(states-7, bordering-8)
  30. nn(York-10, New-9)
  31. dobj(bordering-8, York-10)

  32. QUERY:3
  33. DATABASE:geoquery
  34. NL:Show the state capitals and populations.
  35. SQL:SELECT state.Capital, state.Population FROM state
  36. DR:
  37. root(ROOT-0, Show-1)
  38. det(capitals-4, the-2)
  39. nn(capitals-4, state-3)
  40. dobj(Show-1, capitals-4)
  41. dobj(Show-1, populations-6)
  42. conj_and(capitals-4, populations-6)

  43. QUERY:4
  44. DATABASE:geoquery
  45. NL:Show the capital of the state New York.
  46. SQL:SELECT state.Capital FROM state WHERE state.State_Name = 'New York'
  47. DR:
  48. ???

  49. QUERY:5
  50. DATABASE:geoquery
  51. NL:Show the average of state populations.
  52. SQL:something
  53. DR:
  54. root(ROOT-0, Show-1)
  55. det(average-3, the-2)
  56. dobj(Show-1, average-3)
  57. nn(populations-6, state-5)
  58. prep_of(average-3, populations-6)

  59. QUERY:6
  60. DATABASE:madsat
  61. NL:Show Salute platforms from NAIs with mobility nogo.
  62. SQL:SELECT salute.Platform FROM salute JOIN naimobility ON salute.NAI = naimobility.NAI WHERE naimobility.Mobility = ‘No Go’
  63. DR:
  64. nn(Salute-2, Show-1)
  65. nsubj(platforms-3, Salute-2)
  66. root(ROOT-0, platforms-3)
  67. prep_from(platforms-3, NAIs-5)
  68. prep_with(platforms-3, mobility-7)
  69. prep_as(platforms-3, nogo-9)

  70. QUERY:7
  71. DATABASE:madsat
  72. NL:Show Salute platforms from NAIs.
  73. SQL:SELECT NAI, Platform FROM salute
  74. DR:
  75. nn(Salute-2, Show-1)
  76. nsubj(platforms-3, Salute-2)
  77. root(ROOT-0, platforms-3)
  78. prep_from(platforms-3, NAIs-5)

  79. QUERY:8
  80. DATABASE:datasite
  81. NL:Show tables and servers from sites.
  82. SQL:SELECT Table, Server FROM Sites
  83. DR:
  84. root(ROOT-0, Show-1)
  85. dobj(Show-1, tables-2)
  86. dobj(Show-1, servers-4)
  87. conj_and(tables-2, servers-4)
  88. prep_from(Show-1, sites-6)

  89. QUERY:9
  90. DATABASE:bigdata
  91. NL:Show Salute platforms from NAIs with mobility nogo.
  92. SQL:SELECT salute.Platform FROM salute JOIN naimobility ON salute.NAI = naimobility.NAI WHERE naimobility.Mobility = 'No Go'
  93. DR:
  94. nn(Salute-2, Show-1)
  95. nsubj(platforms-3, Salute-2)
  96. root(ROOT-0, platforms-3)
  97. prep_from(platforms-3, NAIs-5)
  98. prep_with(platforms-3, mobility-7)
  99. prep_as(platforms-3, nogo-9)

  100. QUERY:10
  101. DATABASE:weapon
  102. NL:List countries who have Baradero class ships.
  103. SQL:SELECT navyship.Country FROM navyship WHERE navyship.class = ‘Baradero’
  104. DR:
  105. nn(Weapon-2, List-1)

  106. QUERY:11
  107. DATABASE:weapon
  108. NL:Show countries and lengths who have Frigate type ships.
  109. SQL:SELECT navyship.Country AND navyship.Length FROM navyship WHERE navyship.type = ‘Frigate’
  110. DR:
  111. nn(Weapon-2, Show-1)

  112. QUERY:12
  113. DATABASE:weapon
  114. NL:Show countries with ships of Frigate type and Baradero class.
  115. SQL:SELECT navyship.Country FROM navyship WHERE navyship.type = ‘Frigate’ AND navyship.Class = ‘Baradero’
  116. DR:
  117. nn(Weapon-2, Show-1)