how to Sort boost collection class using multi sorting options/criteria

Hi I am using boost collection class. I did sorting e.g apply a quick/bubble sort algo , but i want to do sorting using multiple criteria. how we can implement using boost. Do boost have any classes or functions through which I can easily sort the data using multiple options? Thanks. Asad -- View this message in context: http://www.nabble.com/how-to-Sort-boost-collection-class-using-multi-sorting... Sent from the Boost - Users mailing list archive at Nabble.com.

AMDG ch.asad@gmail.com wrote:
Hi I am using boost collection class.
I did sorting e.g apply a quick/bubble sort algo , but i want to do sorting using multiple criteria. how we can implement using boost. Do boost have any classes or functions through which I can easily sort the data using multiple options?
What do you mean by multiple options? If you want to sort by f first and then by g, use this formula to get a compound predicate: h(x,y) = f(x,y) || (!f(y,x) && g(x,y)) In Christ, Steven Watanabe
participants (2)
-
ch.asad@gmail.com
-
Steven Watanabe