Code:
L09,574,43,98,32,#FRed#,#FGreen#,#FBlue#,20,"BankGothic Md BT","byvar;SORTORDER;=reg<<=reg<<=plus<<=prem<<=diesel","CENTER"
L09,574,93,98,32,#FRed#,#FGreen#,#FBlue#,16,"BankGothic Md BT","byvar;SORTORDER;rrgas_0_unleaded<<rrgas_0_unleaded<<rrgas_0_plus<<rrgas_0_premium<<rrgas_0_diesel","CENTER"
L09,574,150,98,32,#FRed#,#FGreen#,#FBlue#,16,"BankGothic Md BT","byvar;SORTORDER;rrgas_1_unleaded<<rrgas_1_unleaded<<rrgas_1_plus<<rrgas_1_premium<<rrgas_1_diesel","CENTER"
L09,574,208,98,32,#FRed#,#FGreen#,#FBlue#,16,"BankGothic Md BT","byvar;SORTORDER;rrgas_2_unleaded<<rrgas_2_unleaded<<rrgas_2_plus<<rrgas_2_premium<<rrgas_2_diesel","CENTER"
L09,574,267,98,32,#FRed#,#FGreen#,#FBlue#,16,"BankGothic Md BT","byvar;SORTORDER;rrgas_3_unleaded<<rrgas_3_unleaded<<rrgas_3_plus<<rrgas_3_premium<<rrgas_3_diesel","CENTER"
L09,574,325,98,32,#FRed#,#FGreen#,#FBlue#,16,"BankGothic Md BT","byvar;SORTORDER;rrgas_4_unleaded<<rrgas_4_unleaded<<rrgas_4_plus<<rrgas_4_premium<<rrgas_4_diesel","CENTER"
L09,574,382,98,32,#FRed#,#FGreen#,#FBlue#,16,"BankGothic Md BT","byvar;SORTORDER;rrgas_5_unleaded<<rrgas_5_unleaded<<rrgas_5_plus<<rrgas_5_premium<<rrgas_5_diesel","CENTER"
L09,179,43,300,32,#FRed#,#FGreen#,#FBlue#,20,"BankGothic Md BT","byvar;SORTORDER;=sorted by distance<<=sorted by price<<=sorted by price<<=sorted by price<<=sorted by price","LEFT"
/, B, x, y, w, h, Command;COMMANDCODES, Tooltip
B404,674,133,104,58,"rrgas_distance",@rrgas_distancesort||SETVAR;SORTORDER;0@
B004,674,76,104,58,"rrgas_zipcode",
B405,674,191,104,58,"rrgas_unleaded||SETVAR;SORTORDER;1",
B406,674,250,104,58,"rrgas_plus||SETVAR;SORTORDER;2",
B410,674,365,104,58,"rrgas_diesel||SETVAR;SORTORDER;4",
B411,674,308,104,58,"rrgas_premium||SETVAR;SORTORDER;3",
/DISCARDABLE
So from the above example, when I sort by Plus, the var SORTORDER is set to 2, but only until I close RR, then it defaults back to 0 (with and without the /DISCARDABLE tag). The next time I run RR, the plugin remembers that the order was sorted by plus, but the labels displayed are the unleaded prices for those stations.
Bookmarks