Red Hat Bugzilla – Bug 801577
Process lists sorts numeric data as alpha
Last modified: 2013-09-01 05:57:31 EDT
Description of problem:
When a process list is retrieved for Linux platform, the data on RAM and CPU usage is sorted by string alpha values, not numeric values. In ascending order, "10" comes before "2".
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Schedule and retrieve a process list.
Numeric data should sort by their value.
Is this is a UI rendering issue?
per BZ traige (crouch, foley, loleary), medium priority, not targetted for JON 3.1
This is a UI rendering issue. The operation results are basically
shown as a configuration, using the standard ConfigurationEditor.
Fields are sorted numerically if the ListGridField is declared as a
numeric type. The issue is that the fields in plugin descriptor are
declared as Long, which is not supported by SmartGWT, so we default to
I need to investigate whether using Integer or Float may be an option.
master commit 95fc8dd5273b973633b1907d654a468e883afcb6
When presenting a PropertyMapListGridRecord in the ConfigurationEditor
make it sort numerically for Long properties. Although Long support
is not well-documented in SmartGWT, I think declaring the type
field as a Integer and then ensuring we set the attribute value
to the Long Object will be ok.
It seems to work.
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.