new sort example + clang warnings fixed