Ben bir sırayla aşağıda listelenen bazı kullanıcımız var:
user1 user2 user3 user4 user5
Bu yaşa göre sınıflandırılmaktadır sadece basit bir listedir.
Şimdi yeni bir kullanıcı (user6) gelir ve sıralamaya göre, o kullanıcının 2 sonra uyuyor, bu yüzden sipariş gibi olur:
user1 user2 user6 user3 user4 user5
Now I want to know at which position it is. For example it is on place3. How can i find its position when a new user comes in the list?? Please tell any general way? there is no any database etc, just a logic question.