I will sort a vector consisting of floats in ascending order. I can find the smallest elements of them. no problem by sorting. but i want to know which one was the smallest in my original vector.
for example my floats are: 3 7 13 2 24 64
after sorting it will seem so: 2 3 7 13 24 64
I want to know that 4th member is the smallest (2). That means the smallest number was 4th member of my original vector.How can i hold this value also, i mean how can i say that it is 4th element in my algorithm?