Custom Device State Sort Order

Posted on
Mon Dec 18, 2017 5:11 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Custom Device State Sort Order

Is it possible to affect the sort order of custom device states? What I would like to do is have the states show in the UI as:
Code: Select all
A
a
B
b

or

a
A
b
B

instead of:
Code: Select all
A
B
a
b

These state names are written to the device dynamically and I'd like to retain the mix of upper and lower case names.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Mon Dec 18, 2017 6:17 pm
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Custom Device State Sort Order

Sure:

Code: Select all
myStateName.lower()


LOL. So, no, you can't make the sort case insensitive.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Dec 18, 2017 7:33 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Custom Device State Sort Order

Thanks Jay. All upper then all lower is a sort order that I can live with. :D

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests