Skip to content

Commit 02c6433

Browse files
authored
Merge pull request #10 from node-diameter/dictionary-sorting
Sort by Vendor ID after code for deterministic ordering. Closes #2.
2 parents 7138800 + 99ea03e commit 02c6433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

diameter-dictionary-parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ getDictionary().then(function() {
290290

291291
var dict = {
292292
applications: _.sortBy(applications, 'code'),
293-
commands: _.sortBy(commands, 'code'),
294-
avps: _.sortBy(avps, 'code')
293+
commands: _.sortBy(commands, [ 'code', 'vendorId' ]),
294+
avps: _.sortBy(avps, [ 'code', 'vendorId' ])
295295
};
296296

297297
fs.writeFile('dictionary.json', JSON.stringify(dict, null, 4), function(err) {

0 commit comments

Comments
 (0)