IBM interview question

Write a sample code for sorting.