Solved barn1. Used algorithm::sort in a C style program...whatever.