C++ stl for struct

Can anyone help me with sorting the structure member using C++ stl sort algorithm?

If we cannot do with stl any help for best way to sort struct elements quickly O(nlogn)?

A similar question is on stackoverflow, follow this link - Sorting struct using STL:algorithm