We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c538fa0 commit 74bd703Copy full SHA for 74bd703
src/iv/ivimage.cpp
@@ -213,7 +213,12 @@ IvImage::longinfo() const
213
if (m_spec.z_channel >= 0)
214
m_longinfo += html_table_row("Depth (z) channel", m_spec.z_channel);
215
216
- for (auto&& p : m_spec.extra_attribs) {
+ // Sort the metadata alphabetically, case-insensitive, but making
217
+ // sure that all non-namespaced attribs appear before namespaced
218
+ // attribs.
219
+ ParamValueList attribs = m_spec.extra_attribs;
220
+ attribs.sort(false /* sort case-insensitively */);
221
+ for (auto&& p : attribs) {
222
std::string s = m_spec.metadata_val(p, true);
223
m_longinfo += html_table_row(p.name().c_str(), s);
224
}
0 commit comments