Re: newbie - add 15 to list then reorder



Hi Everyone,

sorry for the confusion, once i have added 15 to one of the numbers and
it has been sorted from lowest to highest it will look like this.

10, 30, 35, 40

assuming that i added 15 to 20 giving me 35.

now take that list 10, 30, 35, 40 and give them all new values 10, 20,
30, 40

so a break down of before and after

10 = 10
30 = 20
35 = 30
40 = 40

i hope this helps

thanks



version2 wrote:
Hi there,

I am outputing a list of 10 values.

10, 20, 30, 40, etc

I can add 15 to one of the values then reorder the values from smallest
to highest but i want to update every single value and assign it values
increamenting by 10

so after the update the second number of 20 and add 15 I get

10, 30, 35, 40

now i want to re output the values above as

10, 20, 30, 40

can someone please help.

.



Relevant Pages

  • Re: newbie - add 15 to number in list
    ... sorry for the confusion, once i have added 15 to one of the numbers and ... I am outputing a list of 10 values. ... increamenting by 10 ... // Print the sorted changed order using the ...
    (comp.lang.php)
  • Re: newbie - add 15 to number in list
    ... version2 wrote: ... I am outputing a list of 10 values. ... I can add 15 to one of the values then reorder the values from smallest ... increamenting by 10 ...
    (comp.lang.php)
  • Re: newbie - add 15 to number in list
    ... Balaskas Evaggelos wrote: ... I am outputing a list of 10 values. ... I can add 15 to one of the values then reorder the values from smallest ... increamenting by 10 ...
    (comp.lang.php)
  • Re: newbie - add 15 to number in list
    ... I am outputing a list of 10 values. ... I can add 15 to one of the values then reorder the values from smallest ... // Print the sorted changed order using the ... You're just changeling one number, reordering the series then putting the original numbers back. ...
    (comp.lang.php)
  • Re: newbie - add 15 to number in list
    ... I am outputing a list of 10 values. ... I can add 15 to one of the values then reorder the values from smallest ... // Print the sorted changed order using the ... // original values that were copied to $bar ...
    (comp.lang.php)