I have a table like so:
The table index is the ID of the item as well as the initial index.
I want to sort the table ascending or descending for alphabetic and numeric.
When the user selects the item the variable 'ItemSel' is set to the current index.
The control is redrawn every half a millisecond or on interaction (sorting/selecting) and it is darw by what is in the 'Items' table.
I need some help with the following functions:
I'm open to changing the method if its easier to code but the end result needs to be a functioning table sort that maps the ID to the index so that on redraw the control sorts the relevant column.
There is a £20 (UK sterling) PayPay payment to anyone that can do this.
Code:
Items = {} Items[0]={COL1="Apples",COL2=1.77,COL3="1.1 MB"} Items[1]={COL1="Oranges",COL2=1.8,COL3="56.8 GB"} Items[2]={COL1="Bananas",COL2=3,COL3="19 B"} Items[3]={COL1="Pears",COL2=7,COL3="44 MB"} Items[4]={COL1="Grapes",COL2=2.5,COL3="77 KB"}
I want to sort the table ascending or descending for alphabetic and numeric.
When the user selects the item the variable 'ItemSel' is set to the current index.
The control is redrawn every half a millisecond or on interaction (sorting/selecting) and it is darw by what is in the 'Items' table.
I need some help with the following functions:
Code:
function SortAlphaAss() end function SortAlphaDec() end function SortNumAss() end function SortNumDec() end function MapIDtoIndex() end function MapIndexToID() end
There is a £20 (UK sterling) PayPay payment to anyone that can do this.
Comment