I need to get the number that an item would be in a search query with 1 being the first number, 2 being second, 3 being third, etc. In the data sorting. For example:
If my database is of domestic animals and I search for dogs I might have 5 different types of dogs in my database. I need the results to show up like so in my repeat field...
1. Jack Russell ----the id for this might be 25
2. German Shepard ----the id for this might be 26
3. Terrier ----the id for this might be 29
4. Doberman ----the id for this might be 32
5. Collie ----the id for this might be 40
So what I need are the numbers 1-5 each being associated with the correct dog. I have a gallery that has to have the items numerically listed from 1-whatever without number breaks. 1,2,3,4,5 works but 1,2,4,3,5 would not allow the gallery to work correctly.