simple sort example in c