[Groonga-commit] groonga/gcs [master] Return sorted index fields

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 3日 (金) 16:00:50 JST


SHIMODA Hiroshi	2012-08-03 16:00:50 +0900 (Fri, 03 Aug 2012)

  New Revision: 8dd2612a48e3bcae91db86d85694854f5c6625ff
  https://github.com/groonga/gcs/commit/8dd2612a48e3bcae91db86d85694854f5c6625ff

  Log:
    Return sorted index fields

  Modified files:
    lib/database/domain.js

  Modified: lib/database/domain.js (+1 -0)
===================================================================
--- lib/database/domain.js    2012-08-03 15:57:10 +0900 (1ac6454)
+++ lib/database/domain.js    2012-08-03 16:00:50 +0900 (6d01661)
@@ -165,6 +165,7 @@ Domain.prototype = {
     if (!this.context)
       throw new Error('no context');
     var columns = this.context.ordinalColumnsSync(this.tableName);
+    columns = columns.sort(function(a, b) { return a.name - b.name; });
     var fields = columns.map(function(column) {
                    // XXX The "name" must be the field name given by the user,
                    // not normalized. Because there is no such information in the
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
다운로드 



Groonga-commit メーリングリストの案内
Back to archive index