Problem
This problem has been driving me nuts all day.
I have a list. Each item in this list has a sequence value, starting from 1.
I have a form to change the sequence of the items in the list. You can type in the sequence number to set it.
So, coming into my script I have the following data:
Unique ID | Old Seq | New Seq |
---|---|---|
foo | 1 | 1 |
bar | 2 | 5 |
baz | 3 | 3 |
qux | 4 | 4 |
quuux | 5 | 5 |
shazbot | 6 | 6 |
So, bar needs to go from 2 to 5, and all other values between 2 and 5 need to be renumbered. Why can’t I solve this frickin’ problem?
Today I found out that one of my classmates from UTS, Anthony Chan, passed away suddenly on Monday.
Jonathan Wise says:
Added on October 27th, 2004 at 4:25 pmSo how would it work then? Would quuux become 2, or would it push new values down the list (ie: 3 becomes 2, 4-3, 5-4)?
Joseph says:
Added on October 28th, 2004 at 9:27 pmHi Victor,
Do you know what happend to Anthony? How he passed away so suddenly?
Ilan says:
Added on October 29th, 2004 at 7:38 pmI’m really sorry to hear that.
And kinda freaked. Andrew Frow, from Elisha’s class (2001), passed away just a couple of months back.
I might see you at the funeral/viewing on Saturday if you’re there.