Improved example 'sort'.