Navigation Menu

Skip to content

Commit

Permalink
Return sorted index fields
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 3, 2012
1 parent 6da5c1e commit 8dd2612
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/database/domain.js
Expand Up @@ -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
Expand Down

0 comments on commit 8dd2612

Please sign in to comment.