TECHZEN Zenoss User Community ARCHIVE  

Sort numerically on table column (ComponentGridPanel)

Subject: Sort numerically on table column (ComponentGridPanel)
Author: Nick Muir
Posted: 2014-08-29 03:48

Writing some custom Zenpacks and having difficulties getting tables to sort numerically rather than alphabetically. For example an index number sorting like this:

0
1
10
100
102
103

The property is set as as 'int' within the component file and I cant see anywhere else to make it sort numerically



Subject: In your modeler make explicit
Author: [Not Specified]
Posted: 2016-05-11 00:09

In your modeler make explicit cast to integer type of the field, for exampe:

'portnumber': int(number),



< Previous
Winrm with german operating system
  Next
Memory Graph Not Generating
>