ID:1679926
 
(See the best response by Sir Lazarus.)
Hello, i know we can arrange the order of objects in lists.(for example:the first object in the list, the second, the third.)I tried looking for an example in the blue book but not sure if it was me or i couldn't find one.

how do i specify what position the item is in the list? i am using an index [] which uses the first to mobs on my list, but i want to make the first two the list the closest mob to you in the list.

Thank-you in advance for any help given.

Best response
By default a list uses the order of insertion. So the first item you add to the list is going to have index of 1, the second item will have an index of 2, etc.

You can use the Swap proc to swap elements in a list.

There are several sorting algorithms available, from natural sorting of elements to random sorting of elements.