Browse Source

Sort tables

Andrew Kane 9 năm trước cách đây
mục cha
commit
49285b6198
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/blazer/data_source.rb

+ 1 - 1
lib/blazer/data_source.rb

@@ -178,7 +178,7 @@ module Blazer
 
     def tables
       columns, rows, error, cached_at = run_statement(connection_model.send(:sanitize_sql_array, ["SELECT table_name, column_name, ordinal_position, data_type FROM information_schema.columns WHERE table_schema IN (?)", schemas]))
-      rows.map(&:first).uniq
+      rows.map(&:first).uniq.sort
     end
 
     def postgresql?