NIFI-3707 Sort Attributes in FlowFile Details UI

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #1843.
This commit is contained in:
James Wing 2017-05-22 18:07:43 -07:00 committed by Pierre Villard
parent 49270f8a8c
commit b64232117f
1 changed files with 4 additions and 1 deletions

View File

@ -462,7 +462,10 @@
var attributesContainer = $('#flowfile-attributes-container');
// get any action details
$.each(flowFile.attributes, function (attributeName, attributeValue) {
var sortedAttributeNames = Object.keys(flowFile.attributes).sort();
sortedAttributeNames.forEach(function (attributeName) {
var attributeValue = flowFile.attributes[attributeName];
// create the attribute record
var attributeRecord = $('<div class="attribute-detail"></div>')
.append($('<div class="attribute-name">' + nfCommon.formatValue(attributeName) + '</div>').ellipsis())