Hello Community, I wanted to have a function to find order of key for an ordered set in java. As far as I know there is no any predefined function to find the number of elements lesser than the given element in an ordered set(treeset) in java in log(n) time? Can some one share their implementation. Thanks !!