fix sort and map example.