<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -39,7 +39,9 @@ module Ultrasphinx
         load_constants
               
         say &quot;rebuilding configurations for #{RAILS_ENV} environment&quot; 
-        say &quot;available models are #{MODEL_CONFIGURATION.keys.to_sentence}&quot;
+        # stable sort classes by name rather than rely on hash order
+        model_list = MODEL_CONFIGURATION.keys.sort
+        say &quot;available models are #{model_list.to_sentence}&quot;
         File.open(CONF_PATH, &quot;w&quot;) do |conf|              
           conf.puts global_header            
           say &quot;generating SQL&quot;    
@@ -48,9 +50,8 @@ module Ultrasphinx
             sources = []
             cached_groups = Fields.instance.groups.join(&quot;\n&quot;)
 
-            MODEL_CONFIGURATION.each_with_index do |model_and_options, class_id|              
-              # This relies on hash sort order being deterministic per-machine
-              model, options = model_and_options
+            model_list.each_with_index do |model, class_id|
+              options = MODEL_CONFIGURATION[model]
               klass = model.constantize
               source = &quot;#{model.tableize.gsub('/', '__')}_#{index}&quot;
  </diff>
      <filename>lib/ultrasphinx/configure.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ae8f5c80dc2e461e61b9bb19f0c7c49d0068cd8a</id>
    </parent>
  </parents>
  <author>
    <name>Matt Gleeson</name>
    <email>matt@tres.rwc.cubetree.com</email>
  </author>
  <url>http://github.com/fauna/ultrasphinx/commit/7df209408b9d918ca5ce648cb7dea76a8ddd8f95</url>
  <id>7df209408b9d918ca5ce648cb7dea76a8ddd8f95</id>
  <committed-date>2009-06-27T11:04:12-07:00</committed-date>
  <authored-date>2009-06-18T12:40:45-07:00</authored-date>
  <message>stable sort classes by name rather than rely on hash order

Signed-off-by: Evan &lt;evan+fauna@cloudbur.st&gt;</message>
  <tree>a7e847a7ef912a8379639e80ee3a6fd753a4156f</tree>
  <committer>
    <name>Evan</name>
    <email>evan+fauna@cloudbur.st</email>
  </committer>
</commit>
