title: How can I record the arrival order of agents in NetLogo?
body: <p>In my model I want one turtle breed (food) to record the order that a number of other breeds (predators) have arrived at it. </p>
  
  <p>So far I have this piece of code that tells me who's there but doesn't preserve the order of arrival:</p>
  
  <pre><code>if ticks = day-length [
  print [who] of turtles-here with [who != [who] of myself]
  </code></pre>
  
  <p>Any suggestions would be much appreciated as always. I do have RNetLogo up and running if that offers a better method. </p>
  
  <p>Thanks </p>
  
  <p>One ugly way to get the data I'm after is to use two separate lines of code </p>
  
  <pre><code>  ask other turtles-here [show got-here]
  
    foreach   sort-by &lt; [got-here]  of turtles-here with [shape = "default"]
    [
    show   ? 
    ]]
  </code></pre>